当前位置: 动力学知识库 > 问答 > 编程问答 >

python - how to enable all or multiple breakpoints in one command?

问题描述:

In http://docs.python.org/2/library/pdb.html, it says breakpoints can be enabled and disabled by its number, such as enable/disable 1. My question is how to enable/disable all or multiple breakpoints?I tried 'disable 1-6', 'disable [1,6]', 'disable 1,2,6', 'disable all'. None of them works.

Thanks.

网友答案:

Space separated works:

disable 1 2 6
enable 1 2 6

Use b to list breakpoints and whether they are enabled.

From the documentation for pdb:

disable [bpnumber [bpnumber ...]]

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: