进入子程序调用,但不调用参数 [英] Step into subroutine call, but not calls made for parameters

查看:93
本文介绍了进入子程序调用,但不调用参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 从我不感兴趣的帧中返回,并且经常莫名其妙地跳过并错过机会,直接<< c $ c>步骤进入 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.

这篇关于进入子程序调用,但不调用参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆