facebook

Debugging with multiple projects [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #196966 Reply

    srau
    Member

    Hi – We have multiple projects in our IDE. We usually deploy one project, debug, undeploy and switch to the next project. Unfortunately, when we debug the second project and stop at a breakpoint, the IDE opens up a file from the first project. This is a big problem for us since we have to remove the first project completely from the IDE every time.

    So is this an Eclipse quirk ? Or is this a plugin issue ? It would be nice to specify a current working project.

    Thanks
    S Rau

    #196967 Reply

    Scott Anderson
    Participant

    The symptom that you’re experiencing is caused because you can actually deploy any project to any server simultaneously. Since that is the case, we register all open projects as possible source locations with the debugger. If you have mutliple projects with exactly the same source file in exactly the same project, the debugger can’t tell which source file is actually the one being run in the particular server you’re debugging.

    Unfortunately, given this ambiguity, the only real solutions are to either not have mutiple instances of exactly the same class in multiple projects, or to temporarily close the projects with duplicate source that you’re not debugging them. Closed projects are ignored by the debugger and can quickly be reopened when needed and this would be faster than removing them from the workspace.

    –Scott
    MyEclipse Support

    #196977 Reply

    srau
    Member

    Ok – closing a project cleans out the webapps/ROOT directory.

    Btw, why does MyEclipse create a ‘tmp_war_general’ directory under WEB-INF ?

    #196983 Reply

    Scott Anderson
    Participant

    Ok – closing a project cleans out the webapps/ROOT directory.

    Technically, it undeploys the project and if the ROOT directory had a previous setting it should restore the backed up value. Otherwise it will just remove it.

    Btw, why does MyEclipse create a ‘tmp_war_general’ directory under WEB-INF ?

    We don’t. I would gess that’s a server-generated directory.

    –Scott
    MyEclipse Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Debugging with multiple projects [Closed]

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