Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用winpdb调试 python 脚本。我想默认关闭“trap unhandled exceptions”模式。手动附加 winpdb 调试器并在每次重新启动时单击闪电按钮的工作量太大。
理想情况下,我会在脚本的开头做这样的事情
导入 rpdb2; rpdb2.start_embedded_debugger('密码', timeout=0, trap_unhandled=False)
但不幸的是,trap_unhandled 参数不存在。
我怎样才能做到这一点?
这似乎有效:
import rpdb2; rpdb2.start_embedded_debugger('mypassword') rpdb2.g_debugger.set_trap_unhandled_exceptions(False)