Use idea to remotely debug java applications

1. Edit configuration items

2. Configure the "Remote" template

  1.  The ip address and debug port of the remote application
  2. -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006
  3. Local code directory (to be debugged)

3. Add a new configuration through the template

4. To start the remote application, add the parameter -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006

5. Start the local application and prompt that the remote application has been connected

 

Guess you like

Origin blog.csdn.net/qq_28411869/article/details/99410252