2

The Eclipse debugger assigns some random number to each watched object (in the debug view shown with (id=123))

Eclipse variable view

Is there a way the watch the value of an object by the debugger ID, independent of the current stack/scope (as long as the object was not collected)?

There is a similar old question here, but with no answers. Maybe there some new developments...

Mahe
  • 759
  • 1
  • 6
  • 21

1 Answers1

0

I found a way to do this, if there is code with a variable referencing the object

  1. Select the variable in the code editor

  2. Open the context menu on the variable in the code editor

  3. Select “Inspect”

context menu

  1. Hit “[Ctrl]+[Shift]+I” to add it to the expression view

Inspect popup

  1. Now you can see the value of the object, even if the variable is reassigned.

expression view

Mahe
  • 759
  • 1
  • 6
  • 21