如何从Python源代码中分析出调试器? [英] How do you break into the debugger from Python source code?
本文介绍了如何从Python源代码中分析出调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
import pdb; pdb.set_trace()
请参阅 Python:在初学者调试器中编码这个和更有用的提示。
What do you insert into Python source code to have it break into pdb (when execution gets to that spot)?
解决方案
import pdb; pdb.set_trace()
See Python: Coding in the Debugger for Beginners for this and more helpful hints.
这篇关于如何从Python源代码中分析出调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文