In Python, I'm used to being able to start a debugger at any point in the code, then poke around at live objects (call methods, that sort of thing). Is there any way, using NetBeans, to do this?
For example, I'd like to be able to break at the line foo = bar().baz().blamo()
and run bar()
, bar().baz()
and bar().baz().blamo()
to see what they do.
In Python, this is what I would do:
...
import pdb; pdb.set_trace()
foo = bar().baz().blamo()
Then it would give me a prompt where I could type things:
(pdb) bar()
... some objet ...
(pdb) bar() + 42
...