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