facebook

breakpoints honored in sub-level JSP pages?

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #229234 Reply

    paula9295
    Member

    Windows
    Eclipse Version 3.0.2 Build id 200503110845
    MyEclipse Version 3.8.4
    JDK version: 1.4.2
    Tomcat 5.5

    Here’s an old post:

    “breakpoints will only be honored in top-level JSP pages. Included JSP fragments are inlined in the top-level pages to to debug them, set a breakpoint above the include in the page which includes the fragment of interest. Then, when you “step over” the include, you’ll be shown the lines executed within the included fragment.

    –Scott
    MyEclipse Support

    Is this still true? I can’t set breakpoints within included JSP sub pages. Setting them at top-level pages works fine.

    #229237 Reply

    Scott Anderson
    Participant

    Paula,

    Yes, it’s still true and here’s why. When a JSP page is included in another one, it is is physically replicated in the containg page’s source file. So, only the top-level page is actually compiled as a JSP page; included pages only exist as some portion of their containing pages. So, for a given included page, it might be used in hundreds of different contexts. To make a breakpoint function, we have to be able to convert your intended breakpoint location in a JSP page into a source line representation in a compiled JSP page. So, when you try to set a breakpoint in an included page, the problem becomes one of disambiguating the context and resolving to a physical top-level JSP location after all includes are taken into account. We’re actually working on a couple of solutions for it, but we haven’t gotten there yet.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: breakpoints honored in sub-level JSP pages?

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