Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
web_dev
Post subject: Issue while Debugging Webapp with Tomcat  PostPosted: May 20, 2006 - 03:43 PM



Joined: May 20, 2006
Posts: 1

Hi,

I have myeclipse plugin installed on Eclipse IDE. I have a webapp that has several versions. I have created a project for each of the version.
The probem is that when I debug the version b (i.e. I put breakpoints in some of the classes of ve ), the debugger goes to the classes of the version a.

Any ideas on how I could as config to fix that ?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: May 20, 2006 - 05:09 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6798

Here's what the problem is. When a breakpoint is triggered in the server JVM all the debugger gets is the full pathname to the resource. If you have multiple resources in your workspace that have that exact path, which you would in the scenario you describe, then the debugger cannot disambiguate the reference automatically and the wrong source may be selected. This can happen with both Java and JSP code.

The easiest workaround is to Close the projects with duplicate references that you're not currently debugging. This will cause Eclipse to ignore any resources they contain and will allow the debugger to find the correct version of the source file you're debugging. When you want to debug a different version, just open it and close the others.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits