pudb
pudb copied to clipboard
Run script and enter debugger on error
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?
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.
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