I use ipdb fairly often in a way to just jump to a piece of code that is isolated i.e. it is hard to write a real script that uses it. Instead I write a minimal tes
I've found these solutions only succeed in breaking your kernel, and then you have to restart and load everything again.
The problem I was having was in a for loop q
will just proceed to the next iteration instead of quitting out of the loop. Eventually I figured out it only happens if your for
loop is in a try
statement. Remove the try
and you can quit out of the debugger again without it continuing the for
loop.