Remote Debug with Java Application Server

xiaoxiao2021-03-06  61

Nowadays, many Java integrated development environments have various JSP Server PLUGIN, which can be debugged in the IDE. But sometimes I want App Server to open independently, and still debug it, that is, Remote Debug. Below is some App Server's Debug start-up mode (of course, there are many kinds, here is the right to throw the jade):

JRUN:

1. Set JRUN to test mode --jrun_home / bin / jrun.exe -start default -debug

2, replace the JRUN profile local.properties corresponding to the corresponding line:

Java.args.debug = -classic -xnoagent -djava.compiler = none /

-Xdebug-xrunjdwp: Transport = dt_socket, address = 5005, server = y, suspend = N

3, start JRUN for debugging;

Resin:

Resin_home / bin / httpd.exe -xdebug -xrunjdwp: Transport = dt_socket, address = 5005, server = y, suspend = n

Tomcat:

In the top of Catalina.sh/bat: set catalina_opts = -server -xdebug -xnoagent -djava.compiler = none -xrunjdwp: transfer = dt_socket, server = y, suspend = n, address = 5005 can be.

WebLogic:

Plus: set java_options = -xdebug -xnoagent -djava.compiler = dt_socket, server = y, suspend = n, address = 5005 in SUSPEND = N, Address = 5005

After starting the App Server, you can use the Debug Remote Java Application and listen to the corresponding debug port under the IDE (here 5005 or ...).

转载请注明原文地址:https://www.9cbs.com/read-83697.html

New Post(0)