Eclipse needs to know where your source is located. If you have the source
located on your local machine, make sure that as part of the Eclipse
project you are using that Eclipse knows about the source. Also, make sure
that there are debugging symbols. How are you deploying your servlet?
> I got Eclipse to connect to the Tomcat JVM, it properly displays
> all the threads running within the JVM. But when I open my servlet
> source and try to set a breakpoint, prior to invoking the servlet,
> Eclipse complains with the following message:
>
> "Breakpoint can neither be added nor removed at current text location."
Roy Varghese - 24 Jun 2004 04:21 GMT
Mark Townsend <mtownsen@nospam.com> wrote in message
> Eclipse needs to know where your source is located. If you have the source
> located on your local machine, make sure that as part of the Eclipse
> project you are using that Eclipse knows about the source. Also, make sure
> that there are debugging symbols. How are you deploying your servlet?
I have added the project to the Source tab of the Debug launcher. I am
using Ant to deploy the servlets. My build.xml has the following lines
<property name="compile.debug" value="true"/>
and later in the file...
<target name="compile" depends="prepare"
description="Compile Java sources">
<!-- Compile Java classes as necessary -->
<mkdir dir="${build.home}/WEB-INF/classes"/>
<javac srcdir="${src.home}"
destdir="${build.home}/WEB-INF/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<!-- Copy application resources -->
<copy todir="${build.home}/WEB-INF/classes">
<fileset dir="${src.home}" excludes="**/*.java"/>
</copy>
</target>
How can I make sure that the source is being found? Even though the
Project is added to the Source tab, the java file is located within a
'src' subdirectory.
Thanks for your help!
Roy