facebook

JSP debugger can not keep track of lines [Duplicate]

💡
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
  • #202395 Reply

    tmartins
    Member

    JSP debugging works but the line marker can not keep track of the lines. When I go line by lline the selected line moves just as it shoud, but 4 lines too early. Look at the code and the comments:

    <%@ page language="java" import="java.lang.*,java.util.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>  // loops from here (by hitting F6)
      <head> 
          <title>My JSP 'MyJsp.jsp' starting page</title> // it stops here
        <%
        Date d= new Date();   // to here
        for(int i=0;i<10; i++) {
                    out.println(new Date());  // break point set here
                    out.println(new Date());
                    out.println(new Date());
                    out.println(new Date());
       }
       %> 
      </head>
      <body>
        This is my JSP page. <br>
      </body>
    </html>

    This is a bit annoying, so hope you can help me!

    Using tomcat 5.0.16, winxp, eclipse 2.1.2, myeclipse 2.7RC2

    #202401

    Riyad Kalla
    Member

    This is a known bug in Tomcat 5.0.16 that has been fixed in CVS. The next release of Tomcat 5 should have the fix in it, sorry for the trouble.

    #202407

    Scott Anderson
    Participant

    The workaround for Tomcat 5.0.16 is posted in one of the ‘Sticky’ threads marked [Tomcat Bug] here:
    https://www.genuitec.com/forums/topic/debugging-jsps-with-tomcat-5-0-16-closed/

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSP debugger can not keep track of lines [Duplicate]

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