eclipse - Java object ID in jvm -


During the debugging object is displayed near the value value near the value.

For example: 28332 session has an ID of the object, this ID is neither a hash code nor a system. The hash code recognizes .

Does anyone know - how to get this ID of the object?

I think Hashaip a identifies them internally and object, integer & gt; , a unique (but meaningless, otherwise) per object should be internal to this eclipse debugger (no particular ID is an object), are you asking how to reach it?

Edit : I am not well versed in this way will set a breakpoint (note that I Iklips):

  • More Close an early breakpoint (like you used to take screenshots), and systems Print the identification (object).
  • Then I bet System.identityHashCode (object) == & lt; Using a breakpack that you saw in the previous step & gt;

or if you are interested in the object, is it appropriate toString () represents that you can use, you can also try Instead of system.identityHashCode (object), you can . In all cases, you do not have to rely on receiving the 'Internal Object ID' but capture such "id" (or approximate) that you can get from the object itself.


Comments