网站企业优化,手机app下载官方,深圳搜索竞价账户托管,网站开发技术有我喜欢使用以下方式检查Python脚本中的错误#xff1a;$python3 -m pdb my_script.py这会让我进入一个pdb提示,从那里我可以继续执行,当它遇到错误,我可以检查变量,然后q退出脚本执行以回到我的shell.我尝试与iPython调试器模块相同,因为它更加丰富多彩#xff1a;$python3 -…我喜欢使用以下方式检查Python脚本中的错误$python3 -m pdb my_script.py这会让我进入一个pdb提示,从那里我可以继续执行,当它遇到错误,我可以检查变量,然后q退出脚本执行以回到我的shell.我尝试与iPython调试器模块相同,因为它更加丰富多彩$python3 -m ipdb my_script.py但是,一旦检查到错误,我就无法退出调试器.使用q quit命令只是在重新执行脚本和验尸模式之间切换它$python3 -m ipdb my_script.pyipdb cUncaught exception. Entering post mortem debuggingRunning cont or step will restart the programipdb Inspect some variables at this pointipdb qPost mortem debugger finished. The my_script.py will be restartedipdb qUncaught exception. Entering post mortem debuggingRunning cont or step will restart the programipdb qPost mortem debugger finished. The my_script.py will be restartedipdb qUncaught exception. Entering post mortem debuggingRunning cont or step will restart the programipdb qPost mortem debugger finished. The my_script.py will be restartedipdb qUncaught exception. Entering post mortem debuggingRunning cont or step will restart the program如何退出这个调试器