如何在eclipse中调试在jetty上运行的Web应用程序? [英] How do i debug a web application running on jetty in eclipse?

查看:289
本文介绍了如何在eclipse中调试在jetty上运行的Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前从未完成过Web编程。有没有办法设置断点,请参阅eclipse中的变量值?我想要调试的应用程序会产生一个查询字符串,我想要轻松地提取。

解决方案

单击外部工具配置, p>



选择程序,然后单击左上角的新按钮。
将位置设置为您的maven二进制
工作目录到本地工作区和对jetty的参数:运行



在环境选项卡中设置maven选择。注意套接字地址= 4000和suspend = y



去调试配置并添加一个新的远程应用程序。添加项目名称并设置套接字地址。现在运行外部工具,它应该说:



聆听运输dt_socket在地址:4000



然后你可以调试远程应用程序并添加断点等。




never done web programming before. Is there a way to set breakpoints, see variable values in eclipse? The app i want to debug makes a Query string whcih i would like to easily extract.

解决方案

Click External Tools Config,

Select program and click the new button top left. Set location to your maven binary working directory to local workspace and arguments to jetty:run

In the environment tab set the maven opts. Notice socket address = 4000 and suspend=y

The go to debug configurations and add a new remote application. Add a project name and set the socket address. Now run the External tool it should say:

Listening for transport dt_socket at address: 4000

Then you can debug the remote app and add breakpoints etc.

这篇关于如何在eclipse中调试在jetty上运行的Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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