3 ms·
I've taken to adding a --pdb option to my scripts.
by andreareina 3y ago
I've taken to adding a --pdb option to my scripts.
- maleldil 3y agoWhat does it do? Just `import pdb; pdb.set_trace()`? Or `breakpoint()` after 3.7 (better because the user can override pdb with ipdb or other with `PYTHONBREAKPOINT`)?
- andreareina 3y agoEither breakpoint() or setting sys.excepthook to call the postmortem debugger.