- run
python pdb_print.py
which generates a.pdbrc
file - copy the
.pdbrc
to your project root
- Alternatively, you can paste the
.pdbrc
contents to an open pdb session
See the generated file for the aliases
The main commands are:
p[ object][ <setting>=<value>][ filter={<string>}]
recursively prints any object attributesset[ name[ value]]
list, view or set settings by specifying 0, 1 or 2 arguments
plr filter={<a search pattern>}
will recurse local objects and print any lines with a match