Eclipse Remote Debugging Application

Source: Internet
Author: User

The first step is to start the application by adding the following configuration entry in the application's configuration file Run.xml:

<target name= "Run" depends= "Checkbuilderfailedlogexist" >
<!--ant antfile= ". /dbschema/main.xml "target=" Run-all "/-->
<java classname= "Com.raisecom.nms.console.RCConsole"
Fork= "true" spawn= "true" JVM = ": \jre\bin\instanceserver ">
<arg value= "${shell.arg1}"/>
<jvmarg value= "-xdebug"/>
<jvmarg value= "-xnoagent"/>
<jvmarg value= "-djava.compiler=none"/>
<jvmarg value= "-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2007"/>
<jvmarg value= "-xmx1024m"/>
<jvmarg value= "-xms256m"/>
<!--jvmarg value= "-XINCGC"/-->
<jvmarg value= "-noverify"/>
<classpath refid= "Liberary.path"/>
</java>
</target>

The second step is to build a project that supports remote debugging, and the port number is the same as the port number in the configuration file above, and the project that relies on it is the project corresponding to the above configuration file.

The third step, you need to see the location of the breakpoint, waiting for the program to run the remote debugging

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.