以前从未做过网络编程。有没有办法设置断点,在 Eclipse 中查看变量值?我想要调试的应用程序会生成一个我想轻松提取的查询字符串。
单击外部工具配置,
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
![enter image description here](https://i.stack.imgur.com/FTPTN.png)
In the environment tab set the maven opts. Notice socket address = 4000 and suspend=y
![enter image description here](https://i.stack.imgur.com/0TOra.png)
转到调试配置并添加新的远程应用程序。添加项目名称并设置套接字地址。现在运行外部工具,它应该显示:
监听地址为 4000 的传输 dt_socket
然后您可以调试远程应用程序并添加断点等。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)