[英]How do I debug a war file on a remote machine?
If I have a jboss server running on another machine and I scp my war file to that machine, how do I debug the war? 如果我在另一台机器上运行jboss服务器并将我的war文件scp到该机器,我该如何调试战争? what commands would I use?
我会用什么命令? How do I do this in my terminal?
我如何在终端上执行此操作?
Run jboss with the debug arguments on the remote machine: 使用远程计算机上的调试参数运行jboss:
-Xdebug -Xrunjdwp:transport=dt_socket,address=54371,server=y,suspend=y
address
- this will be the port you want to connect on address
- 这将是您要连接的端口
server
- signifies it will be the server server
- 表示它将是服务器
suspend
- will block execution of the application until a debugger connects (specify n
if you want the application to begin before a debugger connects to it) suspend
- 将阻止应用程序的执行,直到调试器连接(如果你希望应用程序在调试器连接之前指定应用程序,则指定n
)
If using Eclipse, Debug as a Remote Java Application
. 如果使用Eclipse,Debug作为
Remote Java Application
。 You simply provide the project to debug, the IP of the remote machine and the port you specified. 您只需提供要调试的项目,远程计算机的IP以及您指定的端口。
I am assuming you have an IDE to do the debugging from - which in most case people use Eclipse. 我假设您有一个IDE来进行调试 - 在大多数情况下,人们使用Eclipse。
Check out this post JBoss debugging in Eclipse 看看这篇文章在Eclipse中调试JBoss
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.