7

Is there any way to make Eclipse show the variables content, when debugging, inside the editor, without having to inspect them or look in the variables view?

The image below shows IntelliJ's debugger. I am looking for something similar in eclipse, a plugin maybe.

enter image description here

3
  • Have you tried just hovering over the variable? Commented Jan 21, 2015 at 8:45
  • Yea. But it takes yime Commented Jan 21, 2015 at 9:55
  • 1
    Is it possible to write a plugin that does exactly that? Commented Jul 10, 2016 at 15:39

2 Answers 2

2

Check if Eclipse 4.23 (Feb. 2022, 7 years later) could help:

Debuggers can show values inline

The Run/Debug preference page now shows a new option to allow to show debug values inline.

When enabled, this will print debug values as a code minings annotation on the end of line.
The values shown would then react to change in the debug context as you navigate through the execution.

This is an experimental feature and as this requires extra effort for the debuggers to enable it, not all debuggers may support it yet.

https://www.eclipse.org/eclipse/news/4.23/images/debug-value-inline.png

To be activated with the preference:

https://www.eclipse.org/eclipse/news/4.23/images/debug-preference-inline.png


As noted by gillesB in the comments in 2022:

It is worth to mention that the Java debugger does not yet support this feature.

Sign up to request clarification or add additional context in comments.

2 Comments

It is worth to mention that the Java debugger does not yet support this feature.
@gillesB Good point. I have included your comment in the answer for more visibility.
1

There is no way in eclipse to see the variables current value inside the editor. You need to use the Eclipse inspection (Ctrl + Shift + I) or the Variables View.

See some limitations: Things possible in IntelliJ that aren't possible in Eclipse?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.