Sunday, 30 August 2020

pdb: skip restart when finished

With

python -m pdb -c "c" script.py

the debug mode is entered, when a problem occurs. From the doc, I figured out that the option -c "c" (Python 3.2+) saves me to hit c + Enter each time at program start.

Yet, when the program finishes normally, it outputs The program finished and will be restarted and I still have to hit q + Enter to the quit the program. Is there a way to skip this as well?



from pdb: skip restart when finished

No comments:

Post a Comment