12 ms·
Here's my list of helpful additions: 1. https://pypi.org/project/pdbpp/ https://pypi.org/project/pdbpp/ This is basically a better version of pdb. 2. ~/.pdbr
by 3pt14159 6y ago
Here's my list of helpful additions:
1. https://pypi.org/project/pdbpp/ https://pypi.org/project/pdbpp/
This is basically a better version of pdb.
2. ~/.pdbrc
Useful for common commands that you would otherwise have to type out. For example, if you do TDD on a JSON API and often need to debug the output consider this alias:
alias ppr pp response.json()
3. ~/.pdbrc.py
This file loads before pdb starts, so it lets you customize it a bit and add things like history. Here is a simple version to get you started:
https://gist.github.com/zachaysan/25712f3e9aa02a234437f89c60cad8d0 https://gist.github.com/zachaysan/25712f3e9aa02a234437f89c60...