I presume they have internally an IdentityHashMap<Object, Integer>
, assigning a unique (but meaningless otherwise) integer per object. This should be internal to the eclipse debugger (not a special id that objects have), are you asking how to get at that?
Edit: I would set up a breakpoint like this (note I'm not well versed in eclipse):
- I would have an initial breakpoint (like the one you used to take the screenshot), and print the
System.identityHashCode(object)
of the object I'm interested into.
- Then I would create a breakpoint using the condition
System.identityHashCode(object) == <whatever number you saw at the previous step>
. It would be very rare for this to stop at the wrong object.
Or if the object you are interested into has an appropriate toString()
representation you could use, you could also try that instead of System.identityHashCode(object)
. In all cases, you don't have to rely to eclipse' internal object id, but capture such an "id" (or almost) that you can derive from the object itself.