正在放入调试器
启动A pdb.post_mortem() 错误和失败。
此插件实现 testOutcome() 当它看到一个包含exc_信息的测试结果时,就会进入pdb。
它开火了 beforeInteraction() 在启动PDB和 afterInteraction() 之后。其他插件可能实现 beforeInteraction() 归来 False 并设置 event.handled 以阻止此插件启动PDB。
配置 [调试器]
- always-on
- 违约:
假
- 类型:
布尔
- errors-only
- 违约:
假
- 类型:
布尔
示例配置
默认配置相当于在 unittest.cfg 文件。
[debugger]
always-on = False
errors-only = False
命令行选项
- -D DEFAULT, --debugger DEFAULT
测试失败或错误时输入PDB