简体   繁体   English

Eclipse调试器已在运行

[英]Eclipse Debugger Already Running

I have recently started using Eclipse again after a couple year 'break'. 经过几年的“休息”之后,我最近再次开始使用Eclipse。 I would like to use the built in debugger but when I click the debug button nothing seems to happen.. and even if I click the red Terminate button if I hover over the debugger button it says "(already running)" From tutorials that I've watched, when the debugger button is click, Eclipse is supposed to open the Debug window (the button is located at the top right of eclipse) but even when I manually click that button it never shows me in the code where the debugger is currently executing. 我想使用内置的调试器,但是当我单击调试按钮时,似乎什么都没有发生..即使我将红色的“终止”按钮悬停在调试器按钮上,它也会显示“(已运行)”。已经看到,单击调试器按钮时,应该打开Eclipse窗口(该按钮位于eclipse的右上方),但是即使我手动单击该按钮,它也永远不会在调试器所在的代码中向我显示当前正在执行。 Does anyone have any suggestions for getting my Eclipse debugger working?? 有谁对让我的Eclipse调试器起作用有任何建议?

To my best knowledge, it seems your IDE Perspective Modes need to be switched. 据我所知,似乎您的IDE透视模式需要切换。 You should be able to see two tabs(Java and Debug bug symbol) on the right hand side (top) of the Eclipse IDE. 您应该能够在Eclipse IDE的右侧(顶部)看到两个选项卡(Java和Debug bug符号)。 If you switch perspective, you can see the debugger running. 如果切换透视图,则可以看到调试器正在运行。 The IDE should actually ask you for the first time when you are running in Debug mode (using breakpoints) whether you would like to open this perspective as defualt everytime you hit debug mode. 当您在调试模式下运行(使用断点)时,IDE实际上应该第一次询问您是否希望在每次进入调试模式时都以默认方式打开此透视图。 Try and see if this works. 尝试看看是否可行。 This is probably why you see that your debugging is already in action, but you never saw it taking place and hitting the breakpoints (ie it was invisible to you). 这可能就是为什么您看到调试已经在进行,但是却从未见过发生调试并达到断点的原因(即,它对您不可见)。

As per your comment , it seems like you didn't terminate the eclipse debug mode . 根据您的评论,好像您没有终止eclipse调试模式。 If it is yes please follow the below procedure- 如果是,请按照以下步骤操作:

open the eclipse and write down the code. 打开月食并写下代码。 put the debug the point and run as debug mode and after the debug the code terminate the debug mode using Ctrl+F2 or click on terminate. 放置调试点并以调试模式运行,在调试后,代码使用Ctrl + F2终止调试模式或单击“终止”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM