Eclipse inspection (Ctrl + Shift + I) equivalent i

2020-05-29 22:22发布

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?

5条回答
ら.Afraid
2楼-- · 2020-05-29 22:38

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

查看更多
聊天终结者
3楼-- · 2020-05-29 22:43

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

Many more useful shortcuts are in Intellij Reference Card.

查看更多
放我归山
4楼-- · 2020-05-29 22:53

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

查看更多
Luminary・发光体
5楼-- · 2020-05-29 22:55

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

查看更多
beautiful°
6楼-- · 2020-05-29 22:56

In mac, alt+clicking variables help !

查看更多
登录 后发表回答