如何在eclipse中调试在jetty上运行的Web应用程序? [英] How do i debug a web application running on jetty in 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屋!