Article Directory
- 1. Reliance
- 2. Deployment
- 3. Commissioning
- 4. Source Code
Set up remote debugging to track and debug production failures at any time in a formal environment.
Dependent
Increased remote debugging dependencies in Pom.xml.
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <jvmArguments>
- -xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
- </jvmArguments>
- </configuration>
- </plugin>
- </plugins>
Deployment
Executes the relevant command at deployment time.
- Java -Xdebug -xrunjdwp:Transport=dt_socket,server=y ,suspend=y,address=5005 -jar Dev-0.1. Jar
Debug
In the local Eclipse management interface, mouse double-click the Run button and select Debug configurations to configure.
After running, remote debugging can be done.
Source Code
Related example complete code: springboot-action
Finish
If you feel that my article is helpful to you, please feel free to make a reward.
- Copyright NOTICE: This article was published by Liang in Liang Blog
- Reprint statement: Free reprint-Non-commercial-non-derivative-maintain attribution (Creative Sharing 3.0 license), non-commercial reprint please indicate the author and source, commercial reprint please contact the author himself.
- Article title: Spring Boot Uncover and Combat (eight) release and deployment-remote debugging
- Article Link: http://blog.720ui.com/2017/springboot_08_remote_debug/
Spring Boot Uncover and Combat (eight) release and deployment-remote debugging