impossible to exit debugger traces
See original GitHub issueI like to set traces, and from what I understand from the docs, The Right Way is to use TerminalPdb
.
However, I can not find out how to quit the TerminalPdb
debugger—maybe I’m just daft.
Say I set a trace in a long loop:
from IPython.terminal.debugger import TerminalPdb
pdb = TerminalPdb()
while True:
pdb.set_trace()
The only way to exit this program that I found is to kill it.
My questions are:
- Is TerminalPdb the best way to set traces?
- Is this expected behavior?
- How do I quit?
Thanks!
(I’m on IPython 5.1.0)
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to exit pdb and allow program to continue? - Stack Overflow
from pdb, just type disable N, where N is the breakpoint number you are stuck on. If you don't know the number of...
Read more >Time Travel Debugging - Troubleshooting - Windows drivers
Debugging a trace file without an index file, or with a corrupted or incomplete index file, is possible, but is not recommended.
Read more >Debugging in the browser - The Modern JavaScript Tutorial
Debugging in the browser · The “Sources” panel · Console · Breakpoints · The command “debugger” · Pause and look around · Tracing...
Read more >Chapter 11 Debugging R code
Use where to print a stack trace; Use c to leave the debugger and continue execution; Use Q to exit the debugger and...
Read more >pdb — The Python Debugger — Python 3.11.1 documentation
After post-mortem debugging (or after normal exit of the program), pdb will ... This is useful to hard-code a breakpoint at a given...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m on IPython 6.4, Python 3.6.6 and I’m still getting this issue. Specifically, if I do any
.groupby("col").apply(f)
in pandas for some functionf
that has aset_trace()
, ipdb doesn’t let me quit by typingq
but rather keeps re-running to the next iteration.Use
exit()