eclipse 调试键不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8804886/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
eclipse debugging keys not working
提问by dan12345
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. )
我正在使用 eclipse Indigo cdt- 调试我的 C++ 项目,并且由于某种原因 F* 键在我调试时停止工作。( F8、F6 等...允许我移动到下一行等)
Anyone have any idea? thanks.
任何人有任何想法?谢谢。
采纳答案by JPM
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.
我知道这已经很晚了并且已经得到回答,但是我在调试 android 项目时遇到了同样的问题。即使在许多 IDE 重新启动后,接受的答案也没有解决我的问题。我的解决方法是进入首选项并在常规-> 键下。然后按键排序,查找F5-F8“Debug Step Into, Over, Return and Run”。我突出显示了每一个并单击“恢复命令”,然后重新启动 Eclipse ......这似乎对我有用。
回答by amazia
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.
之后重启eclipse。
Hope this helps.
希望这可以帮助。
回答by Ron
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.
我只是有同样的问题。原来是我微软键盘上的 F Lock 键。如果您的 Microsoft 键盘带有 F Lock 键,我建议您按下它来切换状态,看看是否能解决您的问题。
回答by Chris
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.
我不知道为什么会发生这种情况,但我发现将焦点从一个视图更改为另一个视图(调试或编辑器)通常会修复它。
回答by Edward Brey
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.
一种解决方法是绕过 Eclipse 功能以使键模式敏感。您将无法在某些非调试上下文中使用这些键,但至少它们可以用于调试。
Open the Keyspreferences section (CTRL+SHIFT+Ltwice).
Click the Bindingcolumn header to set the sort order, and find the debugging keys (F5,F6,F7...).
For each key, change the Whenaction value from Debuggingto In Window. Alternatively, you may find there is something more specific than "In Window" that works for your environment.
打开密钥的偏好部分(CTRL+ SHIFT+L两次)。
单击Binding列标题设置排序顺序,并找到调试键 ( F5, F6, F7...)。
对于每个键,将Whenaction 值从Debugging更改为In Window。或者,您可能会发现有一些比“在窗口中”更适合您的环境的内容。
回答by Deepika Anand
Well going to Windows -> Preferences -> Select Keysunder General-> Restore defaults -> restart eclipse worked for me.
好吧,转到 Windows -> 首选项 ->在常规下选择键-> 恢复默认值 -> 重新启动 eclipse 对我有用。
回答by Jim
Eclipse Luna 4.4.2 Mac OS X 10.10.5
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.
当我启动调试时,Eclipse 会尝试建立网络连接。如果我允许,有时会禁用步骤工具按钮。如果我拒绝,它们将被启用。拒绝或允许的对话框来自操作系统。我以标准用户身份运行 Eclipse,因此系统提示我进行特权用户身份验证。
回答by Anish Shah
I have verified it on Eclipse junoand F6, F8 is working properly. Just follow following steps.
我已经在Eclipse juno和 F6上验证了它,F8 工作正常。只需按照以下步骤操作即可。
1 Click on Window Tab https://i.stack.imgur.com/qEKBQ.jpg
1 单击窗口选项卡https://i.stack.imgur.com/qEKBQ.jpg
2 Select Customize Perspective https://i.stack.imgur.com/gdUkU.jpg
2 选择自定义透视https://i.stack.imgur.com/gdUkU.jpg
3 In Tool Bar Visibility make sure Debug is checked https://i.stack.imgur.com/8iC7N.jpg
3 在工具栏可见性中确保选中调试https://i.stack.imgur.com/8iC7N.jpg
4 Select Shortcuts tab and click on Java and make sure Java Run/Debug is checked. https://i.stack.imgur.com/Y5NrF.jpg
4 选择快捷方式选项卡并单击 Java 并确保选中 Java 运行/调试。https://i.stack.imgur.com/Y5NrF.jpg
Hope this will help you out. Happy Coding
希望这会帮助你。快乐编码