java remote debugging summary

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/yuan1164345228/article/details/87188669

Note: This article All steps are proven

MyEclipse remote debugging jar package

(1) up and running in debug mode jar package

java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -jar xxx.jar

Xxx.jar which is required to debug jar package

Parameter Description:

-Xdebug: Enable debug mode
 
-Xrunjdwp <sub-options>: Load JPDA reference JVM implementation library
 
transport = dt_socket: Socket connection, optional dt_shmem connect to the server via shared memory debugging mode
 
address = 8080: debug server listens on port
 
server = y: whether it is a server-side, n client
 
suspend = n: whether to start the process of loading pause, y is when you start to pause, to facilitate debugging boot process

(2) Configuration MyEclipse Remote Debugging

Click debug Chart Options, select Debug Configurations, set up remote debugging parameters, as follows:

Select Remote Java Application, right click and choose New

Set up remote debugging parameters, Name

Click Apply, click Debug debugging can be performed after the.

MyEclipse may not automatically enter debug view, need to be manually switched.

Guess you like

Origin blog.csdn.net/yuan1164345228/article/details/87188669