When debugging a C/C++ application I can create a watch of an address cast to a pointer type and then view that contents of a structure even when it goes out of scope. Is it possible to achieve something like that in Java?
Let's say I'm in a method, I add a watch to something like "&this" and then when I leave the class method I can still see its contents even though it is out of scope?
I'm pretty sure the answer to my question is "no" so I'm mostly interested in "Why not?" explanation. Is this a JVM limitation? A JPDA limitation? Is there a better place to ask such a specialized question?