I am trying to debug a python application using pudb, everything is fine and good except that it's not displaying the instance variables (which we access with self.xxx
). It just displays 1 variable called self
. And it's of the original class type.
Even if I tell it to show after calling str(self)
, it still only displays the object information.
If you see the code has created many variables like self.parser
, self.groups
and I am not able to view/inspect any of them.
Is there a way to view all the instance variables
of the current class while debugging using pudb?
This is the expected behaviour, and has nothing to do with your debugger: you only have one name,
self
.To see its contents you can use
dir(self)
.