Eclipse - Run/Debug shortcut key doesn't work

孤者浪人 提交于 2019-11-28 22:33:51
omer.dogan

The only solution works for me ;

Open Key mappings (CTRL+SHIFT+L twice) Find the debugging shorcuts (F5,F6,F7...) and select

then change the When action value from "Debugging" to "In Window"

Go to Window -> Preferences -> General -> Keys For each key that doesn't work: Set your binding to whatever you want. - I just copy the command then change "When" from "Debugging" to "Editing Java Source". good luck.

Robin Martin

I battled with a new Dell laptop, so in case it saves someone time ....

By default, the F-key priority was set for sound, brightness and music, e.g. F9 brings up Windows search. --> This is without pressing the Fn key and the desired Fkey as expected.

To toggle the priority, look for Fn + Esc. That allows F5, F6 etc to work as expected. You can press Fn + F6 for skipping music tracks

If your computer has a fn lock/toggle that switches between fn and the f1-f12 keys, make sure that you didn't toggle the other mode by accident.

schnatterer

If you use the default key mappings, restoring defaults might work.

Window | Preferences | General | Keys (or Ctrl+Shift+L then L), then hit Restore Defaults and OK.

For custom mappings, I recommend this answer.

Satish Gadhave

Try F11. It worked for me. Im using Eclipse in ADT.

shokri

Please check if another program is trying to hook keyboard messages. Maybe that program prevents the Eclipse to receive some keystrokes including Ctrl + F11. I had this problem and finally I found out that the problem is about my dictionary application which used Ctrl + F11 to popup. After disabling the hotkey in the dictionary application, Eclipse started to handle Ctrl + F11 correctly!

Edit: My post doesn't directly react the original malfunctioning-F11-behavoir question. But the issue I had seems quite similar and definitely it relates to some other (quite highly voted) answers.


I've bumped into a similar issue too when I upgraded to Eclipse 4.7 Oxygen and needed to install several plugins from a scratch. F* keys didn't work in the debug perspective even though the appropriate key bindings were configured correctly.

Unfortunately, neither reseting perspective nor reseting key bindings (as suggested in some comments here) helped.

The trick that fixed that for me was:

Preferences > Run/Debug > Perspectives > Restore Defaults

That revived the F* keys functionality in my debug perspective. I don't thing this is the universal way how to bring the behaviour back, but among the other "Resets to defaults" this one may be the right one in some cases, so it's worth trying.

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