调试Spring MVC与eclipse和Tomcat问题 [英] Debug Spring MVC with eclipse and Tomcat issue

查看:1014
本文介绍了调试Spring MVC与eclipse和Tomcat问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Tomcat服务器(eclipse IDE)上部署了一个Spring MVC应用程序。该应用程序出现了,但一些数据被添加到list.So想要调试。
我添加了调试点,并在服务器上进行了调试,服务器以调试模式启动,但是在调试视图中没有找到源代码。控件不会在应用程序代码中进行编码。



非常新的java编程,所以我确定不是我问的是一个愚蠢的问题。请帮助我。让我知道,如果我需要更多的细节。



注意我不使用maven或任何类似的东西。



感谢
Siddhi

解决方案

按照以下步骤:


  1. 从内部启动Tomcat服务器实例Eclipse;

  2. 服务器实例启动后,打开Debug视图。确保应用程序运行的线程在视图中以层次结构的树状结构可见。应用程序名称应位于此层次结构的顶部;

  3. 停止Tomcat服务器实例。应用程序名称仍应在调试视图中显示;

  4. 右键单击应用程序名称,然后选择编辑源查找;

  5. 选择应用程序根目录作为Eclipse应该查找源代码的位置之一;

  6. 再次启动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:

  1. Start the Tomcat server instance from within Eclipse;
  2. 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;
  3. Stop the Tomcat server instance. The name of the application should still be visible in the Debug view;
  4. Right click the application name and choose Edit Source Lookup;
  5. Select the application root directory as one of the locations where Eclipse should look for the source code;
  6. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆