Can I evaluate an expression with the Eclipse debugger?

R

Ramon F Herrera

In addition to the "Inspect" command and the variables which are
automagically shown by the debugger, is there a way to type and
evaluate some arbitrary expression?

In Eclipse, that is.

-RFH
 
J

Joe Attardi

Ramon said:
In addition to the "Inspect" command and the variables which are
automagically shown by the debugger, is there a way to type and
evaluate some arbitrary expression?
In Eclipse, that is.

Yup. When you're debugging, presumably in the Debug perspective, open
the "Display" view.

It's a little clunky, though. You type your expression, then you have to
highlight it and right-click. You will see a few options in the context
menu - you can have the result printed to the text area, you can inspect
the returned object (the most useful IMHO), or just display the value in
a small popup (one of those "Press F2 for focus" ones).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top