python - How to exit pdb and allow program to continue? -
i'm using pdb module debug program. i'd understand how can exit pdb , allow program continue onward completion. program computationally expensive run, don't want exit without script attempting complete. continue
doesn't seems work. how can exit pdb , continue program?
continue
should "continue execution, stop when breakpoint encountered", you've got breakpoint set somewhere. remove breakpoint (if inserted manually):
(pdb) break num type disp enb 1 breakpoint keep yes @ /path/to/test.py:5 (pdb) clear 1 deleted breakpoint 1 (pdb) continue
or, if you're using pdb.set_trace()
, can try (although if you're using pdb in more fancy ways, may break things...)
(pdb) pdb.set_trace = lambda: none # replaces set_trace() function! (pdb) continue # no more breaks!
Comments
Post a Comment