Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Debugger Source Not Found
Debugger Source Not Found [message #214850] Thu, 15 September 2005 19:00 Go to next message
Eclipse User
Originally posted by: oliverm.sourceonenet.com

How can a break point be toggled in a java source editor in Eclipse and
then have the debugger intercept a call to that class where the break
point was toggled, and then not find the source? I restarted eclipse with
the clean option.

The Class File Editor doesn't even have a button or link to allow me to
attach the source file. I can toggle the breakpoint off in the source
file editor and the debugger no longer intercepts.

Huh?
Re: Debugger Source Not Found [message #214932 is a reply to message #214850] Fri, 16 September 2005 15:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: sami.p.heikkinen.remove.mail.suomi.net

Have you tried Project | Properties menu command, and there select Java
Build Path, and then Libraries. For each library, you can define the source
and doc location.

"Michael Oliver" <oliverm@sourceonenet.com> wrote in message
news:bb5eb60e91b31f14a570b9f9210d88ed$1@www.eclipse.org...
> How can a break point be toggled in a java source editor in Eclipse and
> then have the debugger intercept a call to that class where the break
> point was toggled, and then not find the source? I restarted eclipse with
> the clean option.
>
> The Class File Editor doesn't even have a button or link to allow me to
> attach the source file. I can toggle the breakpoint off in the source
> file editor and the debugger no longer intercepts.
>
> Huh?
>
Re: Debugger Source Not Found [message #214940 is a reply to message #214932] Fri, 16 September 2005 16:31 Go to previous messageGo to next message
Eclipse User
Originally posted by: oliverm.sourceonenet.com

Its not IN a library, it is the source I have open in the java source
editor, I right click in the margin to toggle a break point on, then
execute and the debugger intercepts, but complains it can't find the
source...

This is for Eclipse 3.0.1
Re: Debugger Source Not Found [message #214944 is a reply to message #214940] Fri, 16 September 2005 20:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse3.rizzoweb.com

Michael Oliver wrote:
> Its not IN a library, it is the source I have open in the java source
> editor, I right click in the margin to toggle a break point on, then
> execute and the debugger intercepts, but complains it can't find the
> source...
>
> This is for Eclipse 3.0.1

The cause of this is usually that the classpath used to launch the debug
session is not including the Project itself (and thus not including the
Project's source). Most likely it is including the generated .class
files of the Project explicitly, which is almost never what you want.
Check the classpath settings of the Launch Configuration you're using to
start the app for debugging.

HTH,
Eric
Re: Debugger Source Not Found [message #214952 is a reply to message #214944] Fri, 16 September 2005 20:20 Go to previous message
Eclipse User
Originally posted by: oliverm.sourceonenet.com

Eric,

Nope it is the standard tomcat startup with the normal web app structure
/WEB-INF/classes

The context is back into the project's /WebContent/ with the project's build
path pointing to source at /JavaSource/ and classpath picking up
/WEB-INF/lib/*.jar with the output going into /WebContent/WEB-INF/classes/

The odd thing is that I know there is only one copy of the class anywhere in
the jvm and that if I toggle the breakpoint in the source editor in eclipse,
the debugger will intercept when toggled on and not intercept when toggled
off.

I can debug other project classes with the same setup and organization.

"Eric Rizzo" <eclipse3@rizzoweb.com> wrote in message
news:dgf8oh$grq$1@news.eclipse.org...
> Michael Oliver wrote:
>> Its not IN a library, it is the source I have open in the java source
>> editor, I right click in the margin to toggle a break point on, then
>> execute and the debugger intercepts, but complains it can't find the
>> source...
>>
>> This is for Eclipse 3.0.1
>
> The cause of this is usually that the classpath used to launch the debug
> session is not including the Project itself (and thus not including the
> Project's source). Most likely it is including the generated .class files
> of the Project explicitly, which is almost never what you want.
> Check the classpath settings of the Launch Configuration you're using to
> start the app for debugging.
>
> HTH,
> Eric
Previous Topic:How to reuse the JavaProjectWizard?
Next Topic:Where is the JDTCompilerAdapter for use with ANT.
Goto Forum:
  


Current Time: Fri Oct 24 23:17:31 GMT 2014

Powered by FUDForum. Page generated in 0.02886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software