When debugging in eclipse, I selected expression and pressed ctrl+i and then ctrl+d. Then I see my expression in display view and there I can evaluate any java code. Is there such view in intellij-idea?
Problems tool windowClick on the Inspections widget in the editor or use the Ctrl/Cmd+6 shortcut to open it. The Current File tab shows the list of problems in the file that is open in the editor. Select a problem and press Enter or double-click to navigate to it.
Press Ctrl+Alt+S to open the IDE settings and select Appearance & Behavior | Path Variables. Add the names that IntelliJ IDEA shouldn't consider to be path variables to the Ignored Variables field.
To navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace . To find the current caret location in the editor, press Ctrl+M .
I'm not familiar with the exact behaviour in eclipse, so i am guessing a little here, but you should be able to do the same thing in two ways.
Given you are debugging and have stopped at a breakpoint, you can evaluate an expression that is valid in the current scope by highlighting it, hitting alt-f8 and then enter - or the quick version is simply ctrl-alt-f8
Or you may prefer to right click on the expression and choose Add to Watches (in the Debug pane, ensure you have selected the Debugger panel, rather than Console).
Good luck!
I'm an eclipse user and I know exactly what you mean by running code in display view. check this
double shift (or find anything) -> evaluate expression -> Click code fragment
check console for the code that I run in debug mode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With