如何在一个命令中启用所有或多个断点?

2024-04-20 04:27:17 发布

您现在位置:Python中文网/ 问答频道 /正文

http://docs.python.org/2/library/pdb.html中,它表示断点可以通过其编号来启用和禁用,例如enable/disable 1。我的问题是如何启用/禁用所有或多个断点?我尝试了“disable 1-6”、“disable[1,6]”、“disable 1,2,6”、“disable all”。它们都不起作用。你知道吗

谢谢。你知道吗


Tags: orghttpdocsenablehtmllibraryall编号
1条回答
网友
1楼 · 发布于 2024-04-20 04:27:17

空间分隔工程:

disable 1 2 6
enable 1 2 6

使用b列出断点以及它们是否被启用。你知道吗

documentation for pdb

disable [bpnumber [bpnumber ...]]

Disables the breakpoints given as a space separated list of breakpoint numbers.

相关问题 更多 >