Did you know that you can add aliases to PDB with a ~/.pdbrc file?
I made one over the weekend with some very helpful aliases.
https://treyhunner.com/2026/04/customizing-pdb-with-pdbrc/
I can now use these to inspect an object (note that "dir" and "vars" are like the dir() & vars() functions but better):
attrs x
dir x
vars x
And I can find the source for a function with this:
src func
And print non-dunder locals nicely like this:
loc


