有没有办法使用Eclipse调试Web应用程序? [英] Is there any way to debug web applications using Eclipse?

查看:254
本文介绍了有没有办法使用Eclipse调试Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse Java IDE处理Web应用程序。



我使用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屋!

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