“未找到来源”调试模式下 JBoss 的 Eclipse 中的消息 - 断点位于我的代码中
我在调试模式下启动了 JBoss,我的项目是由 Maven 构建的,我使用 Eclipse,唯一的断点在我的代码中。但是当我运行该应用程序时,它停止在一个名称为我已放入断点的类的窗口上,但它只显示“未找到源”。
对于我来说这意味着什么?我该如何克服这个问题?
我不是 Eclipse 调试方面的专家,所以我希望得到详尽的解释!
I started up JBoss in debug mode, my project is built by Maven, I work with Eclipse, the only breakpoint is in my code. But when I run the app it stops on a window with a name as the class I've put the breakpoint in, but it only shows the "Source not found."
What is it supposed to mean in my case, and how could I overcome this?
I am not an expert in debugging with Eclipse so I would appreciate a thorough explanation!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
应该有一个按钮“编辑源查找路径”,您可以在其中添加源文件的位置(放置断点的位置)。
There should be a button 'Edit Source Lookup Path' where you can add the location of you source files (where you put the breakpoint).
尝试在 JBoss 服务器配置中添加项目的文件系统文件夹:
Try adding your file system folder of the project in the JBoss server configuration:
就在未找到源错误下方,您将看到“编辑源查找路径”按钮,单击它,然后单击“添加”按钮,然后单击“Java 项目”并包含您导入的项目。希望这会解决你的问题
Just Below Source not found error you will see "Edit Source Lookup Path" button click on it and then click on Add button then Java Project and include your imported project .. Hope this will solve your problem
您可能已经为工作区(在 Eclipse 中)中的特定项目配置了调试设置,该项目在 JBOSS 中部署为 jar 或 war,如果断点位于可能位于其他项目(jar、war)内的代码内,而其他项目(jar、war)可能是如果您配置了调试设置的项目的依赖项,那么 Eclipse 将无法找到源代码。这就是为什么您需要“编辑源代码查找”到包含源代码的源代码
You might have configured your Debug settings for a particular project in your workspace(in eclipse) which is deployed in JBOSS as jar or war, if the breakpoint is inside code that may be inside some other project(jar, war) which may be a dependency of the project for which you configured your debug settings then eclipse would not be able to find the source code. this is why you need to 'edit source look up' to the source code containing the source