Eclipse inspection (Ctrl + Shift + I) equivalent in IntelliJ IDEA (Community Edition)

冷暖自知 提交于 2019-12-12 07:31:49

问题


Under Eclipse I can inspect expressions/variables in debug mode with Ctrl+Shift+I. In IntelliJ IDEA (Community Edition), I can add expressions/variables to the watches, but on the next debug they are lost.

Is there any way to inspect variables and expression on the fly when I'm debugging?


回答1:


Quick evaluate expression with Ctrl + Alt + F8 (or on a Mac: Cmd + Opt + F8) gives me exactly what I want.




回答2:


Do you mean "Evaluate expression" action Alt + F8?

Many more useful shortcuts are in Intellij Reference Card.




回答3:


Ctrl + Alt + F8 will work. This shortcut may trigger the Intel HD Graphics hotkey for resetting display settings.

Alt + Left Mouse Key will also work.

If you want to view/edit the shortcuts, you can go to Settings (Ctrl + Alt + S) -> Keymap and search for Quick Evaluate Expression




回答4:


Ctrl + Alt + 8 in case of Intellij Idea 2019.2 and Ubuntu 18.04.




回答5:


In mac, alt+clicking variables help !



来源:https://stackoverflow.com/questions/18073545/eclipse-inspection-ctrl-shift-i-equivalent-in-intellij-idea-community-edi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!