[英]Play! Framework Eclipse Debug Source Not Found
I have been trying to debug and look through the internals of Play! 我一直在尝试调试Play的内部结构! Frameworks Controller class.
框架控制器类。 If I place break points on the Controller.class, the debugger stops at the break point but throws a "Source Not Found"
如果我在Controller.class上放置断点,则调试器将在断点处停止,但会抛出“找不到源”
I have added play.jar and the project is in path. 我添加了play.jar,该项目正在运行中。 Even added a Java Classpath called "Play_Home" which points to the Play framework.
甚至添加了一个Java类路径,称为“ Play_Home”,它指向Play框架。
Update I been able to always debug my code (your solutions don't help me). 更新我能够始终调试我的代码(您的解决方案无济于事)。 When I plan a breakpoint on Play's internal classes like Controller, the debugger stops and says "Source not found"
当我在Play的内部类(如Controller)上计划断点时,调试器将停止并显示“找不到源”
(This answer is almost a straight copy of my own answer to another question that touches the same topic. I assume the problem in your case will be solved by running the eclipsify
command, as another user has already mentioned.) (此答案几乎是我自己对另一个涉及相同主题的问题的答案的直接副本。我认为您的情况下的问题将通过运行
eclipsify
命令来解决,正如另一个用户已经提到的那样。)
Create the configuration files for Eclipse by running play eclipsify YourProject
command. 通过运行
play eclipsify YourProject
命令为Eclipse创建配置文件。 (See Play framework documentation for more information.) (有关更多信息,请参见Play框架文档 。)
You should now have a folder named eclipse
in your project. 现在,您的项目中应该有一个名为
eclipse
的文件夹。 In it, you should see commands Connect JDPA to YourProject.launch
, YourProject.launch
and Test YourProject.launch
. 在其中,您应该看到
Connect JDPA to YourProject.launch
, YourProject.launch
和Test YourProject.launch
。
Right-click on the YourProject.launch
and choose Run As --> YourProject
from the pop-up menu. 右键单击
YourProject.launch
然后从弹出菜单中选择Run As --> YourProject
”。 That will start your application. 那将启动您的应用程序。 When the application is running, right-click on the
Connect JDPA to YourProject.launch
, and choose Debug As --> Connect JDPA to YourProject.launch
from the pop-up menu. 当应用程序运行时,右键单击
Connect JDPA to YourProject.launch
,然后从弹出菜单中选择Debug As --> Connect JDPA to YourProject.launch
。 That will start a debug session on your application. 这将在您的应用程序上启动调试会话。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.