Comment

Comment by hcarvalhoalves

A good list of libraries, but please, don't use this in the middle of your code to set a break point:

    import pdb; pdb.set_trace();
There's a chance you forget this, check-in, and it ends in production. Use pdb facilities instead:

    $ python -m pdb <myscript>
Then set a breakpoint and continue:

    (Pdb) break <filename.py>:<line>
    (Pdb) c
This is trivial to automate from any editor or command line, so you don't even have to guess the path to the file.

EDIT: For the lazy, here's a script to set breakpoints from the command line and run your scripts:

https://gist.github.com/hcarvalhoalves/7587621

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton