Maybe this question will look simple but I'm trying to look at some member variables from within ipdb and I cannot see how.
I am sure that p is correct
class MyClass( object ):
def __init__( self, p ):
self.__p = p
pass # <--- breakpoint here!
. In the debugger I enter:
and I get the following error message:
* * *AttributeError: 'MyClass' object has no attribute '__p'
It seems that self
is the class
, not the instance
for the debugger.
Any idea about how to perform what I do?
I use Python 2.7.3 on IPython 0.12.1 on Kubuntu 12.04 - 64 bits.