facebook

JSP breakpoint only works at root context level [Closed]

💡
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. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #199705 Reply

    georgeh
    Member

    First, this is a great value product.

    I am running
    Windows XP Pro,
    jdk 1.4.1_04,
    Eclipse Version: 3.0.0 Build id: 200310101454
    MyEclipse 3.6.3
    Tomcat 5

    I am able to trap on breakpoints in JSPs that sit at the webroot context, and in any of the java source that I access via any JSP.

    I have never been able on this or earlier combinations to trap on a breakpoint in a JSP that resides at a lower level of a lower subdirectory.

    I have read the support posts and can say that the breakpoint checkmark appears at the webroot level but not at the lower level. (Even though I have accessed the page in both cases).

    I am hoping that this is something simple that I have missed. I am really enjoying this product and this is the only thing I have to work around at present by guessing the logic and setting the breakpoint in the pure servlet source (i.e. those none jsp generated servlets)

    Also when I do this work-around and step into a JSP geneated servlet I get the “source not found error for the xxxx_jsp.java”. This may be an associated problem.

    I had the same issue in M3 and even in the Eclipse/MyEclipse release 2.x combination.

    Can you please advise.

    regards

    #199717

    Scott Anderson
    Participant

    George,

    I tried to reproduce the problem you’re experiencing, but I could not. Here’s what I did:

      Created a web project (TestProject)
      Under the web root created a folder called subdir
      Inside subdir, created SimpleJSP.jsp
      Set a breakpoint in SimpleJSP.jsp
      Deployed project in exploded mode to Tomcat 5
      Navigated to localhost:8080/TestProject/subdir/SimpleJSP.jsp
      The breakpoint stopped execution and displayed the JSP source as expected

    There must be some difference in my test case versus what you’re doing. Is the JSP you’re trying to set a breakpoint in a top-level JSP or a fragment (included JSP)? Breakpoints only function in top-level JSP’s since JSP fragments are inlined and as such don’t generate a class file. To debug an included JSP, set a breakpoint in the top level JSP that includes it and then step over the include line with the debugger. Could this be the confusion?

    –Scott
    MyEclipse Support

    #199735

    georgeh
    Member

    Scott,
    I tried your suggestion and it works. I still couldn’t get it to work in my original project.

    I tried a few things with no luck then, in a last hope realised that I had imported the project from another development environment with the folders as:

    webapp/protected/administration

    so I altered the name of the folders to give

    webapp/prot/administration.

    and … , my JSP breakpoints now work well. Oops.

    Thanks again for the prompt reply.

    regards

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSP breakpoint only works at root context level [Closed]

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