调试Spring MVC与eclipse和Tomcat问题 [英] Debug Spring MVC with eclipse and Tomcat issue
问题描述
我添加了调试点,并在服务器上进行了调试,服务器以调试模式启动,但是在调试视图中没有找到源代码。控件不会在应用程序代码中进行编码。
非常新的java编程,所以我确定不是我问的是一个愚蠢的问题。请帮助我。让我知道,如果我需要更多的细节。
注意我不使用maven或任何类似的东西。
感谢
Siddhi
按照以下步骤:
- 从内部启动Tomcat服务器实例Eclipse;
- 服务器实例启动后,打开Debug视图。确保应用程序运行的线程在视图中以层次结构的树状结构可见。应用程序名称应位于此层次结构的顶部;
- 停止Tomcat服务器实例。应用程序名称仍应在调试视图中显示;
- 右键单击应用程序名称,然后选择编辑源查找;
- 选择应用程序根目录作为Eclipse应该查找源代码的位置之一;
- 再次启动Tomcat服务器实例。
实例出现后,您应该可以调试源代码了。
I have deployed a Spring MVC application on Tomcat server(eclipse IDE). The application comes up fine but some data is added to list.So wanted to debug . I have added debug points and did "Debug on server" ,the server started in debug mode but it says : Source not found.in the debug view.The control doesnot come to code in application code.
Very new to java programming , so I am sure not what i have asked is a silly question .Please help me.Let me know if i need more details.
Note I donot use maven or anything like that.
Thanks Siddhi
Follow the steps given below:
- Start the Tomcat server instance from within Eclipse;
- After the server instance has started, open the Debug view. Make sure that the running threads of the application are visible in the view in a hierarchical tree-like structure. The application name should be at the top in this hierarchy;
- Stop the Tomcat server instance. The name of the application should still be visible in the Debug view;
- Right click the application name and choose Edit Source Lookup;
- Select the application root directory as one of the locations where Eclipse should look for the source code;
- Start Tomcat server instance again.
After the instance has come up, you should be able to debug your source code just fine.
这篇关于调试Spring MVC与eclipse和Tomcat问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!