Post subject: Issue while Debugging Webapp with Tomcat Posted: 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
support-scott
Post subject:Posted: May 20, 2006 - 05:09 PM
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.