如何在ipdb中禁用源上下文的默认打印?我在Emacs realgud中调用ipdb,所以我不需要在ipdb提示符下看到源代码。
代码
import ipdb
ipdb.set_trace()可以在ipdb shell本身内执行,但是
ipdb.set_trace(context=5)失败,因为
*** TypeError: set_trace() got an unexpected keyword argument 'context'这条路走错了吗?
发布于 2016-12-22 17:11:45
python trepan和trepan3k的处理方式是通过set autolist。想想看,我所有的调试器都是这样处理的,一些ruby调试器也是如此,比如rdebug,因为我就是从那里得到这个想法的。
https://stackoverflow.com/questions/41247128
复制相似问题