How to exit pdb and allow program to continue?

后端 未结 5 716
你的背包
你的背包 2020-12-22 20:53

I\'m using the pdb module to debug a program. I\'d like to understand how I can exit pdb and allow the program to continue onward to completion. The program is computational

5条回答
  •  -上瘾入骨i
    2020-12-22 21:31

    If you really wish to exit the debugger then you need to run something like WinPdb which allows you to detach from the process and then exit the debugger, (N.B. It is multi-platform).

    If you would like to continue debugging but no longer stop at a given breakpoint then you need to:

    1. Make a note of the breakpoint number, (or the file and line number),
    2. Either cl bp_number or clear file:line to permanently remove the breakpoint or disable pb_number to toggle it off but be able to toggle it back.
    3. Then continue and your program run until then next different breakpoint is hit.

    For more detail on the above see the manual.

提交回复
热议问题