Deciphering variable information while debugging Java

That is objectId reported by the JVM, for details please see the JDWP specification.

Uniquely identifies an object in the
target VM. A particular object will be
identified by exactly one objectID in
JDWP commands and replies throughout
its lifetime (or until the objectID is
explicitly disposed). An ObjectID is
not reused to identify a different
object unless it has been explicitly
disposed, regardless of whether the
referenced object has been garbage
collected. An objectID of 0 represents
a null object. Note that the existence
of an object ID does not prevent the
garbage collection of the object. Any
attempt to access a a garbage
collected object with its object ID
will result in the INVALID_OBJECT
error code. Garbage collection can be
disabled with the DisableCollection
command, but it is not usually
necessary to do so.

Leave a Comment