pudb icon indicating copy to clipboard operation
pudb copied to clipboard

Run script and enter debugger on error

Open alok opened this issue 8 years ago • 2 comments

I can run pudb file.py and execute each line. But sometimes I just want to run the script till there's an error and then enter pudb. Is there an equivalent to python -m pdb -c continue file.py?

alok avatar Oct 12 '17 19:10 alok

python -m pudb file.py and then hit c.

There isn't a single-command way of doing that right now, but I'd be happy to take a patch.

inducer avatar Oct 12 '17 19:10 inducer

To add to this answer, you can add from pudb import set_trace; set_trace(paused=False) at the start of your script as documented here as a workaround

mdamien avatar Feb 19 '18 20:02 mdamien