Reputation: 403
In Eclipse I can only run/debug my project by using one of the menu buttons. Pressing F11 or Ctrl + F11 does nothing. I've mapped Debug Last Launched to all kinds of various keyboard shortcuts to see if another program running in the background was intercepting the key presses and that doesn't seem to be the case. Every other keyboard shortcut seems to work fine such as Ctrl + Shift + T or Ctrl + G.
Any help? The shortcut key works on my other computer and I keep instinctively trying to press it and it's drastically slowing down my work efficiency.
Upvotes: 35
Views: 48386
Reputation: 516
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.
Upvotes: 0
Reputation: 530
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.
Upvotes: 2
Reputation: 51
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!
Upvotes: 0
Reputation: 73
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
Upvotes: 6
Reputation: 7859
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.
Upvotes: 1
Reputation: 635
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"
Upvotes: 44
Reputation: 567
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.
Upvotes: 12