有没有办法使用Eclipse调试Web应用程序? [英] Is there any way to debug web applications using Eclipse?
问题描述
我使用Tomcat 6作为我的servlet容器。
可用于Java的工具(包括Eclipse)似乎缺乏Web应用程序的调试功能(与.NET平台的Visual Studio相比)。
如何使用Eclipse调试我的Web应用程序?
在调试模式下运行tomcat (java选项 -Xdebug -Xnoagent -Djava.compiler = NONE -Xrunjdwp:transport = dt_socket,server = y,suspend = n,address = 8000
),然后使用远程调试在Eclipse(调试配置 - >远程Java应用程序)中并连接到配置端口上的服务器(例如,在此示例中为8000)。
I am working on a web application using the Eclipse Java IDE.
I am using Tomcat 6 as my servlet container.
The tools available for Java, inculding Eclipse, seem to lack debugging capabilities for web applicatons (as compared to Visual Studio for the .NET platform).
How can I debug my web app using Eclipse?
run tomcat in debug mode (java option -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
) and then use remote debug in Eclipse (Debug Configurations -> Remote Java Aplication) and connect to server on configured port (e.g. 8000 in this example).
这篇关于有没有办法使用Eclipse调试Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!