How do I debug Spring Boot applications

Idea remote debugging Springboot application

  1. Configure the parameters of the Remote Connection idea
  2. Start the JAR package and invoke the remote debugging command
  • Xrunjdwp: Debugging protocol JDWP protocol, followed by protocol parameters
  • Transport: There are two communication methods between the debugger and the service of idea, socket and shared memory, which only have to be cross-machine and only have to be sockets
  • suspend: if it is y, you have to wait for the debugger of the idea to connect to the debug port before starting the program on the server. Otherwise the program will not hang when it is started and executed directly
  1. Start the remote service just configured in the idea
  2. The remaining operational step is to access the business request that corresponds to the remote server and the debug is synchronized locally

programmerwiki

Programmer encyclopedia

Copyright © 2020-2021 - All Rights Reserved - programmerwiki.com