Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing display panel in intellij idea

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?

like image 323
dhblah Avatar asked Aug 29 '13 07:08

dhblah


People also ask

How do I get the problem tab in IntelliJ?

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.

How do I open the variable window in IntelliJ?

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.

How do I enable navigation in IntelliJ?

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 .


2 Answers

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!

like image 114
vikingsteve Avatar answered Sep 20 '22 08:09

vikingsteve


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

enter image description here

like image 30
Radu Toader Avatar answered Sep 19 '22 08:09

Radu Toader