dan12345
dan12345

Reputation: 1614

eclipse debugging keys not working

I'm debugging my C++ project with eclipse Indigo cdt- and for some reason that F* keys stopped working when i'm debugging . ( F8, F6, etc... that allow me to move to next line, etc. )

Anyone have any idea? thanks.

Upvotes: 14

Views: 29610

Answers (8)

Anish Shah
Anish Shah

Reputation: 1

I have verified it on Eclipse juno and F6, F8 is working properly. Just follow following steps.

1 Click on Window Tab https://i.sstatic.net/qEKBQ.jpg

2 Select Customize Perspective https://i.sstatic.net/gdUkU.jpg

3 In Tool Bar Visibility make sure Debug is checked https://i.sstatic.net/8iC7N.jpg

4 Select Shortcuts tab and click on Java and make sure Java Run/Debug is checked. https://i.sstatic.net/Y5NrF.jpg

Hope this will help you out. Happy Coding

Upvotes: 0

Deepika Anand
Deepika Anand

Reputation: 305

Well going to Windows -> Preferences -> Select Keys under General -> Restore defaults -> restart eclipse worked for me.

Upvotes: 0

Jim
Jim

Reputation: 125

Eclipse Luna 4.4.2 Mac OS X 10.10.5

When I start Debug, Eclipse tries to make a network connection. If I allow, sometimes the step toolbuttons are disabled. If I deny, they are enabled. The dialog to deny or allow comes from the OS. I run Eclipse as a standard user, so I am prompted for a privileged user authentication.

Upvotes: 0

Ron
Ron

Reputation: 61

I just had the same exact issue. It turned out it was the F Lock key on my Microsoft keyboard. If you have a Microsoft keyboard with an F Lock key, I suggest pressing it to toggle the state and see if that resolves your issue.

Upvotes: 4

Edward Brey
Edward Brey

Reputation: 41648

A workaround is to bypass the Eclipse feature to make the keys mode sensitive. You'll lose the ability to use the keys in some non-debug contexts, but at least they'll work for debugging.

  1. Open the Keys preferences section (CTRL+SHIFT+L twice).

  2. Click the Binding column header to set the sort order, and find the debugging keys (F5,F6,F7...).

  3. For each key, change the When action value from Debugging to In Window. Alternatively, you may find there is something more specific than "In Window" that works for your environment.

Upvotes: 1

Amazia Gur
Amazia Gur

Reputation: 1712

I have no idea how I made the keys disappear in the first place, but what fixed it was to reset the debug perspective (You can do this from Window->Reset Perspective or right clicking on the Debug Perspective button from the top right panel and then choosing reset).

Afterward restart eclipse.

Hope this helps.

Upvotes: 16

JPM
JPM

Reputation: 9296

I know this is late and already answered but I ran into the same issue debugging an android project. The accepted answer did not fix my problem even after many IDE restarts. My fix was to go into the Preferences and under General -> Keys. Then order list by key and look for F5-F8 "Debug Step Into, Over, Return and Run". I highlighted each one and clicked "Restore Command", then restarted Eclipse... this seemed to work for me.

Upvotes: 13

Chris
Chris

Reputation: 3519

I don't know why this happens but I've found that changing focus from one view to another (debug, or the editor) will usually fix it.

Upvotes: 1

Related Questions