facebook

Debugging JSP Files

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

    Hello,

    I am working with a large existing project and would like to step through the application’s JSPs in the debugger since these pages contain a lot of embedded Java code. I have imported and successfully built all of the application’s Java files and can set breakpoints and step through the code as deployed in OC4J. But when I set breakpoints in JSPs, program execution does not step within them. Obviously I am missing some step but I don’t know what that is.

    I would be most appreciative for any help that you can provide.

    Stuart

    #256438 Reply

    rogue_dev
    Member

    I had the same issue (Tomcat). The problem is that the JSP must first be assembled into a .java file, then compiled into a .class file.

    If you try to step through the JSP for the first page hit, then the above process has not happened and there is nowhere for the debugger to refer to.

    So hit the page first, which assembles and compiles the JSP, then you can step through the code on subsequent hits.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Debugging JSP Files

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