facebook

Issue while Debugging Webapp with Tomcat

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #252281 Reply

    web_dev
    Member

    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

    #252293

    Scott Anderson
    Participant

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Issue while Debugging Webapp with Tomcat

You must be logged in to post in the forum log in