Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Debug Duplicate Window
Debug Duplicate Window [message #201872] Tue, 27 March 2007 21:02 Go to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I am a bit confused. I am using Eclipse version 3.2 and have been using
it for some time but something must have changed and I'm not sure what.
When I enter into debug mode and my code hits a break point it opens a
second copy of the code (same exact code) that allows me to step through
it but I cannot make any changes to the code or even add break points. I
still have the editable code in a different window.

Thanks,
Ben
Re: Debug Duplicate Window [message #201880 is a reply to message #201872] Tue, 27 March 2007 23:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Ben" <bsisson@simventions.com> wrote in message
news:f67e7632839a7c11d0f98035354aa19a$1@www.eclipse.org...
>I am a bit confused. I am using Eclipse version 3.2 and have been using it
>for some time but something must have changed and I'm not sure what. When
>I enter into debug mode and my code hits a break point it opens a second
>copy of the code (same exact code) that allows me to step through it but I
>cannot make any changes to the code or even add break points. I still have
>the editable code in a different window.

Sounds like it is loading the class from a jar file somewhere rather than
from your editable copy. Did your classpath change, or did the class get
added to a jar file on the classpath?
Re: Debug Duplicate Window [message #201896 is a reply to message #201880] Tue, 27 March 2007 23:57 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I have yet to create a jar file for this application and am only running
it out fo the Eclipse workspace for now. In windows explorer I checked
and the only class files are in the ..\build\classes\org\database\schema
directory that I would expect them in. I also checked the properties on
the proejct and did not see any reference to this.

In addition, when I make a change or add a checkpoint to the source that I
can edit and run in debug mode, even when it create the duplciate copy
(that I cannot edit) it seems to be picking up my changes.

If you or anyone else has any suggestions I would greatly appreciate it.

Thanks,
Ben
Re: Debug Duplicate Window [message #202028 is a reply to message #201880] Wed, 28 March 2007 16:26 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I hope this helps but this issue began after I received a "Source not
found" message during debugging. I was acutally debugging a program that
I had debugged many times before when I received this message. I found
that when I browsed and selected the workspace that I am working with that
I was able to debug but it was at this point that I couldn't make changes
to the code or add break points because the debugging was in a copy of my
acutally code. Also, when I selected the browse to find my workspace, it
initially listed a different workspace the my current workspace I was
using. As I said, I switched to my current workspace and could debug (or
see the code) I just couldn't make changes, or add break points and it
created a second copy of my code.

Thanks,
Ben
Re: Debug Duplicate Window [message #202071 is a reply to message #201872] Wed, 28 March 2007 17:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Ben wrote:
> I am a bit confused. I am using Eclipse version 3.2 and have been using
> it for some time but something must have changed and I'm not sure what.
> When I enter into debug mode and my code hits a break point it opens a
> second copy of the code (same exact code) that allows me to step through
> it but I cannot make any changes to the code or even add break points.
> I still have the editable code in a different window.

Check the Launch Configuration that you are using to launch your debug -
its classpath or source path must be icnluding the .class files or JAR
file from your source instead of the source itself.

Hope this helps,
Eric
Re: Debug Duplicate Window [message #202199 is a reply to message #202071] Thu, 29 March 2007 12:54 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I'm not sure where to make this change or what change to make. I went
into Windows->Preferences->Run/Debug->Launching->Launch Configuration but
am not sure which options I would need to change. I do not see a path or
checkbox that indicates where it is pulling the source/classes from. I
also do not see anything under the project properties that would apply.

The application that I'm running is a simple web application that I have
run/tested many times before this occured. I typically right click on the
JSP and choose to run/debug on server and it works. I'm not sure where
the options is to switch the configuration. If someonoe could provide a
more detail I would greatly appreciate it.

Thanks,
Ben
Re: Debug Duplicate Window [message #202211 is a reply to message #202199] Thu, 29 March 2007 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Ben wrote:
> I'm not sure where to make this change or what change to make. I went
> into Windows->Preferences->Run/Debug->Launching->Launch Configuration
> but am not sure which options I would need to change. I do not see a
> path or checkbox that indicates where it is pulling the source/classes
> from. I also do not see anything under the project properties that
> would apply.
>
> The application that I'm running is a simple web application that I have
> run/tested many times before this occured. I typically right click on
> the JSP and choose to run/debug on server and it works. I'm not sure
> where the options is to switch the configuration. If someonoe could
> provide a more detail I would greatly appreciate it.

Launch Configurations are the mechanism that Eclipse uses to launch your
application(s). One is created when you run a class (or JSP in your
case), but you can also create/edit them directly.
If this were a stand-alone application I could tell you how to edit the
Launch Config, but this is WTP related (running on a server) so I
suggest you ask on the WTP newsgroup how to check/edit the classpath and
source lookup path for a server launch.

Hope this helps,
Eric
Re: Debug Duplicate Window [message #202282 is a reply to message #202211] Thu, 29 March 2007 17:20 Go to previous message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I never figured out what the cause of the issue was but to fix the debug
problem (the creation of the second window) I created a new work space,
reset all my preferences, and copied the projects from the other workspace
into it. Once I did this I was able to modify my code, add and remove
break points while debugging. If anyone ever figures out the issue please
post it here.

Thansk,
Ben

PS: I tried to post this under web tools per the previous response but
could not find the link to that newsgroup anymore.
Previous Topic:Update Manager Configuration problems
Next Topic:mac os x drag and drop support
Goto Forum:
  


Current Time: Thu Apr 25 20:21:49 GMT 2024

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

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

Back to the top