Enter Interactive Mode In Python

后端 未结 7 807
日久生厌
日久生厌 2021-01-30 06:42

I\'m running my Python program and have a point where it would be useful to jump in and see what\'s going on, and then step out again. Sort of like a temporary console mode.

相关标签:
7条回答
  • 2021-01-30 07:17

    Most comfortable tool for me is ipdb.

    ipdb exports functions to access the IPython debugger, which features tab completion, syntax highlighting, better tracebacks, better introspection with the same interface as the pdb module.

    Completion and handy introspection is especially useful for debugging.

    0 讨论(0)
提交回复
热议问题