Eclipse Remote Debugging Tomcat

Source: Internet
Author: User
Tags server port

Title: After you publish the project to the server, the project on the local debug server

1, configure Tomcat, locate the Startup.bat copy in the Tomcat bin directory renamed Startup-debug.bat, open Find call "%executable%" Start%cmd_line_args%, will it

Change to call "%executable%" JPDA start%cmd_line_args%, add on top of it

Set Jpda_transport=dt_socket
Set jpda_address=8088

Note: This is the debug port number, which is the port number when eclipse is connecting to the server, not the Tomcat server port number, and if the conflicts fail to start successfully, I have the server port number 8089 here.

Set Jpda_suspend=n

Then double-click Startup-debug.bat to start the server

2, open Eclipse, open the debug icon, you can see the debug configurations Find the remote Java application new, configure the Debug project ( The project source in eclipse must be the same as the war in the server ) IP, CONFIGURED port number, here is 8088, then Apply,debug

3, after we make breakpoints in the source code, access to the server project, debugging

Eclipse Remote Debugging Tomcat

Related Article

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.