Re:CLI tools hidden in the Python standard library
by andreareina on Thursday June 29, 2023 @03:35AM
(#36517531)
I've taken to adding a --pdb option to my scripts.
[ Parent
| on HN ]
Re:CLI tools hidden in the Python standard library
by maleldil on Thursday June 29, 2023 @07:24AM
(#36518975)
What 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`)?
Re:CLI tools hidden in the Python standard library
by andreareina on Thursday June 29, 2023 @12:02PM
(#36522278)
Either breakpoint() or setting sys.excepthook to call the postmortem debugger.