I'd like to have the interactivity of pdb, but also need to use python's help function to introspect objects/methods that I am not familiar with using.
How can I use python's help() from pdb?
everything I try gives me:
(Pdb) help(help)
*** No help on (help)
(Pdb) help(list())
*** No help on (list())
If you want to evaluate an expression using PDB, you use p
.
(Pdb) p help(list)
The debugger command docs are here: PDB Debugger Commands
I had problems to get help from pdb too but apparently, inserting !
before the command does the job like:
(Pdb++) !help(help)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With