Eclipse Debug since remote points of a Java application do not fall

This is one of those problems that bring you to the brink of common sense.

I am running Eclipse Java EE Indigo on Windows XP 32bit. I am trying to debug a gwt client client application for tomcat 6. I am using JDK1.6.0_32

I am trying to debug the back end of my application. I set breakpoints, start the client as a web application locally, and then debug the service as a remote Java application (standard (socket attach) localhost, 8000, correct sources). I checked that I am starting the server with the correct debugging settings (dt_socket, 8000, catalina.bat jpda start)

spray points do not fall. Nothing, yes. Eclipse does not pause the thread, and the code continues to go through breakpoints. What makes this even more confusing was that the control points worked yesterday, without changing anything without me, and this does not happen this morning.

I tried restarting, cleaning, and updating. The issue with Google on the issue caused most problems since 2009 with an older version of Java.

EDIT: Eclipse throws the error message โ€œFailed to set breakpoint due to missing line numbersโ€, even if this option is selected in the properties

+4
source share
3 answers

Since the service side of the code was built using the ant assembly. I had to make sure that the .xml file was set to debug = "true". I still got an error about missing lines, but breakpoints worked.

+2
source

If you try to access the machine using telnet, will it respond?

telnet localhost 8000 

The port may be blocked in the firewall.

+1
source

You may need to indicate whether you want line numbers or not, see our javac task:

 <javac encoding="utf-8" ... debug="true" debuglevel="lines,vars,source" ... > ... </javac> 
+1
source

All Articles