Java 调试器不会在断点处停止:Eclipse 中的 Websphere
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19518414/
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
Debugger not stopping at breakpoints: Websphere in Eclipse
提问by CoMo G-Dawg
I've recently had my app moved from Websphere Application Server 6.1 to WAS 7.5, due to end-of-life for 6.1. Consequently, I needed to update my debugging server. I found this to be an opportune time to move my application from an IBM RAD IDE to Eclipse (already had Indigo installed). Or so I thought.
由于 6.1 的生命周期结束,我最近将我的应用程序从 Websphere Application Server 6.1 转移到了 WAS 7.5。因此,我需要更新我的调试服务器。我发现这是将我的应用程序从 IBM RAD IDE 迁移到 Eclipse(已经安装了 Indigo)的好时机。或者我是这么想的。
Anyway, the powers that be, here, have recommended taking my debugger all the way to WAS 8.5, since I'm only using it to debug.
无论如何,这里的强大功能建议将我的调试器一直带到 WAS 8.5,因为我只使用它来调试。
But the issue that I'm encountering is that I cannot get the debugger to stop on my breakpoints. I've got approx. 10 breakpoints in my opening page, all in JSP/Java code.
但是我遇到的问题是我无法让调试器在我的断点处停止。我有大约。我的打开页面中有 10 个断点,全部在 JSP/Java 代码中。
I'm running Java 1.6.0_32 and Java SE Runtime Environment build 1.6.0_32-b05. I really don't know how to check which JDK I've got loaded. I've seen recommendations to "go back" to JDK 1.5, but I can't be certain that's not what I'm running.
我正在运行 Java 1.6.0_32 和 Java SE 运行时环境构建 1.6.0_32-b05。我真的不知道如何检查我加载了哪个 JDK。我已经看到了“返回”到 JDK 1.5 的建议,但我不能确定这不是我正在运行的。
And to cover a few other bases, I have JUST started my system for the day, opened the IDE, started the server in debug (says "Debugging, Synchronized"), put focus on the opening page of the application and clicked "Debug on server". The front page opens without stopping at any of the breakpoints.
为了涵盖其他一些基础,我刚刚启动了当天的系统,打开了 IDE,在调试中启动了服务器(说“调试,同步”),将焦点放在应用程序的打开页面上,然后单击“调试服务器”。首页打开时不会在任何断点处停止。
Does anyone have ideas or suggestions?
有没有人有想法或建议?
回答by shadow
anything wrong of the ecplise's site.
ecplise 的网站有什么问题。
Run->Skip all breakpoints
运行->跳过所有断点
回答by Suresh Anbarasan
If you use eclipse's debugger and running the application outside eclipse environment , we have to configure it as remote java application. Also check if the code deployed in server is in sync with the one present in workspace.
如果您使用 eclipse 的调试器并在 eclipse 环境之外运行应用程序,我们必须将其配置为远程 java 应用程序。还要检查部署在服务器中的代码是否与工作区中的代码同步。
回答by Inder Jethwani
Well, I had recently faced this problem, where the code did not use to stop at breakpoints while I was in debugging mode and was sure that the particular piece of code is executing. In order to solve the problem, I did a clean-build-republish but it did not work, recreated the profile and readded the server with new profile, still did not work then finally re-installed RAD and web-sphere but It still did not work. Then I found the below article https://www-304.ibm.com/support/docview.wss?uid=swg21240896
嗯,我最近遇到了这个问题,当我处于调试模式时,代码没有使用在断点处停止,并且确定特定的代码段正在执行。为了解决这个问题,我做了一个干净的构建重新发布但它没有用,重新创建配置文件并用新的配置文件读取服务器,仍然没有工作,然后最终重新安装了 RAD 和 web-sphere 但它仍然有效不行。然后我找到了下面的文章 https://www-304.ibm.com/support/docview.wss?uid=swg21240896
and realized it could be a problem due to some other OS process interfering with debug process/port so I performed a system restore. After restore when I deployed the application, debugger started working properly.
并意识到这可能是由于某些其他操作系统进程干扰调试进程/端口而导致的问题,因此我执行了系统还原。部署应用程序后恢复后,调试器开始正常工作。
回答by CoMo G-Dawg
I'd like to say I found the answer to this, but I never did. I ended up dropping RAD and moving to debugging on Jetty. My local testing isn't EXACTLY as it would be on the test server, but it works. Not sure if this should be flagged as "answered" or not.
我想说我找到了这个问题的答案,但我从来没有。我最终放弃了 RAD 并转向在 Jetty 上进行调试。我的本地测试并不完全像在测试服务器上那样,但它有效。不确定这是否应该标记为“已回答”。
UPDATE: I have left this project but before I did, the entire development platform was moved to IDEA and debugging was no longer an issue. I don't know if I should find a way to mark this question as inactive or closed or whatever so that it's not just sitting out here getting views and responses when it's no longer an issue for me.
更新:我已经离开了这个项目,但在我离开之前,整个开发平台都转移到了 IDEA,调试不再是问题。我不知道我是否应该找到一种方法将这个问题标记为不活跃或关闭或其他什么,这样它就不会在它不再是我的问题时坐在这里获得观点和回应。