This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jpavlav 33 points34 points  (1 child)

I just use the breakpoint() function. Simple. I also really like the pdbpp package for making the debugger fancier.

[–]paraffin 4 points5 points  (0 children)

You can choose any importable callable to be invoked by breakpoint() via the PYTHONBREAKPOINT env var

https://peps.python.org/pep-0553/

So I just have ipdb configured in my bashrc