Debugged program configuration
Add the following content to the debugged program startup script
addJava "-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n"
address
: Debug port
eclipse
Configuration
Enter Go to Run –> Debug Configurations –> Remote Java Application
, right-click to select New Configuration
, configure Connect
and Sources
related information.
For reference information, see Java Remote Debug with Eclipse