I am used to Perl's debugger m methods callable function so that during debugging, I can do:
m $self
And I will get a list of methods associated to the object at that point.
Is there an equivalent to that in python-2.7.5 -m pdb?
If you want to query the current object (self), use:
(Pdb) dir(self)
Otherwise, you can install ipdb, which gives you an IPython-based debugger. There, you get autocompletion:
ipdb> self.<TAB>
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