Spring Boot Uncover and Combat (eight) release and deployment-remote debugging

Source: Internet
Author: User

Article Directory

    1. 1. Reliance
    2. 2. Deployment
    3. 3. Commissioning
    4. 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.

  1. <plugins>
  2. <plugin>
  3. <groupId>org.springframework.boot</groupId>
  4. <artifactId>spring-boot-maven-plugin</artifactId>
  5. <configuration>
  6. <jvmArguments>
  7. -xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
  8. </jvmArguments>
  9. </configuration>
  10. </plugin>
  11. </plugins>
Deployment

Executes the relevant command at deployment time.

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.