进入子程序调用,但不调用参数

编程入门 行业动态 更新时间:2024-10-24 06:38:46
本文介绍了进入子程序调用,但不调用参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 func(a(), b.c)

何时在pdb调试器中执行上述代码,使用 step 实际上将进入 a ,然后进入 bc (如果是非典型值(例如属性)),然后才真正进入 func 。

When executing the line above in the pdb debugger, using step will actually step into a, and then into the getter for b.c if its atypical (such as being a property), before actually stepping into func.

通常,我发现自己使用步骤然后是 r 从我不感兴趣的帧中返回,并且经常莫名其妙地跳过并错过机会,直接<步骤进入 func 。

Generally I find myself using step followed by r to return from the frames I'm not interested in, and often inexplicably pass over and miss the opportunity to step directly into func.

我如何直接进入 func 或调试程序的顺序命令将确保我以 func 结尾而不是跳过它?

How do I step directly into func, or what sequence of debugger commands will guarantee that I end up in func rather than passing over it?

推荐答案

tb函数(函数暂时中断),然后跟随 c (继续)应该可以。

tb func ("temporary break at func") followed by c ("continue") should work.

更多推荐

进入子程序调用,但不调用参数

本文发布于:2023-10-28 19:17:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1537539.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:子程序   但不   参数

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!