serhii.net

In the middle of the desert you can say anything you want

23 Dec 2021

python pdb stops on keyboard interrupt

<Ctrl-C> of a program running inside pdb (python3 -m pdb myscript.py or whatever) doesn’t kill the program, but drops you in the debugger!

Useful when you suspect there’s an infinite loop somewhere, and want to see what exactly is the program doing when it starts using 120% of your CPU

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus