Eclipse 调试器和远程调试器不工作

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25718066/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:57:15  来源:igfitidea点击:

Eclipse debugger and remote debugger not working

javaeclipsedebuggingeclipse-pluginremote-debugging

提问by Jigs

I m using Eclipse Luna Version: Luna Release (4.4.0) Build id: 20140612-0600-32 BIT I have some breakpoints and remote debugger on which use to work as expected.

我正在使用 Eclipse Luna 版本:Luna Release (4.4.0) Build id:20140612-0600-32 BIT 我有一些断点和远程调试器,用于按预期工作。

Suddenly it stopped working. I m debugging using Target runtime option.

突然它停止工作。我正在使用 Target 运行时选项进行调试。

Now , it does not stop at the breakpoints. Though in case of remote debugging , it connects to the port. Verified that using netstat. But it is just not stopping at breakpoints. I m using SUN JDK 1.7 Some times I get PERM SPACE OUT issue. Kindly suggest.

现在,它不会在断点处停止。虽然在远程调试的情况下,它连接到端口。使用 netstat 验证。但它并没有在断点处停止。我使用的是 SUN JDK 1.7 有时我会遇到 PERM SPACE OUT 问题。请建议。

回答by Grim

There are two problems (Whearat EclipseA debugs EclipseB):

有两个问题(Whearat EclipseA 调试 EclipseB):

  1. The plug-in you develop in EclipseA is async to the deployed plugin the EclipseB take use of. This may case if the project can not build compleatly in EclipseA or a old version of your plugin is loaded by the EclipseB first.
  2. The EclipseB has not enougth memory/permgen. So add -Xms512m -Xmx2g -XX:MaxPermSize=512mto the Debug-Configuration's VM-Arguments.
  1. 您在 EclipseA 中开发的插件与 EclipseB 使用的已部署插件异步。如果项目无法在 EclipseA 中完全构建,或者 EclipseB 首先加载旧版本的插件,则可能会出现这种情况。
  2. EclipseB 没有足够的内存/永久代。所以添加-Xms512m -Xmx2g -XX:MaxPermSize=512m到 Debug-Configuration 的 VM-Arguments。

回答by Arek

You can do few things:

你可以做几件事:

  • Refresh all projects code
  • Clean all projects and rebuild them
  • 刷新所有项目代码
  • 清理所有项目并重建它们

If any of above activities will not resolve your problem then try to remove all projects from eclipse, remove all eclipse settings files and directories and import your projects again.

如果上述任何活动都不能解决您的问题,请尝试从 eclipse 中删除所有项目,删除所有 eclipse 设置文件和目录,然后再次导入您的项目。

回答by paardhu

I also faxed this issue. I resolved by go to your eclipse workspace folder->.metadata ->org.eclipse.debug.core inside this folder there will be .launches folder delete this folder. I am sure this will resolve you problem.

我也传真过这个问题。我通过转到您的 eclipse 工作区文件夹->.metadata->org.eclipse.debug.core 在此文件夹中解决了 .launches 文件夹删除此文件夹。我相信这会解决你的问题。