Finding a variable value in Eclipse Debug Perspective

I am debugging a program, and as soon as I enter the instruction, I get a list of variables in the Variables view or, if I hold the mouse pointer over a variable, its value is displayed.

Now I have an object that can have many references to other objects, which, in turn, have their own attributes that contain other objects, etc. Search space can become very large. I would like to find where these values ​​can be to search for attributes of an object by value . Eclipse is already looking for these objects by attribute.

I tried the EVars plugin, but it does not seem to be compatible with Eclipse 4.4. Any other tools or recommendations on how to do this?

Many thanks!

+4
source share
1 answer

During debugging, you can use the Screen window, where you can write code fragments and “execute” them with verification (select the code → right-click → verify).

In this window, you have access to all breakpoint context variables. You can use some fragments of java 8 threads to filter your objects.

https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fdisplay%2Fref-display_view.htm

https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-evaluating_expressions.htm

0
source

All Articles