Is it possible in the debugger to store a reference to an object, so that I can later inspect it, even if it is no longer accessible via any variables in the then-current stackframes?
For example I am currently stopped at a Spring Bean constructor which creates and configures a connection manager. At a completely unrelated breakpoint I'd like to take a peek at that connection manager.
That should be possible, right? I mean I could create a singleton class with a static instance of Map<String, WeakReference<Object>> and use that to store and later reference the object by a name. So the debugger should be able to do it, too, right?