Getting pdb caller information in python
Let's say I have the following method (in a class or module, I don't think it matters):
def someMethod():
pass
I would like to access the state of the caller while calling this method.
traceback.extract_stack
just gives me a few lines about the call stack.
I would like something like pdb
where I can set a breakpoint at someMethod()
and then type "u" to go to the call stack and then check the system state.
+1
Charles reich
a source
to share