facebook

JSP Debug doesn’t work correctly (Tomcat 5.0.16) [Dup]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #201407 Reply

    swisswheel
    Member

    When I set a breakpoint in the JSP file and enter the url, the debugger stops and shows me the correct variables at the upper right (Window “Variables/Details”). But at the editor pane the cursor points to some html code but not to the position (java code of course) I have set the breakpoint.

    I use Tomcat 5.0.16,
    JDK 1.4.2,
    Eclipse 2.1.2 Build id:200311030802 and
    MyEclipse EnterpriseWorkbenchInstaller_020700RC1.exe

    Can anyone help me, please?

    #201453 Reply

    support-michael
    Keymaster

    Please review this thread and see if it resolves your problem.

    https://www.genuitec.com/forums/topic/debugging-jsps-with-tomcat-5-0-16-closed/

    Michael
    MyEclipse Support

    #201521 Reply

    swisswheel
    Member

    Now it works half. I can debug my JSPs now, but the breakpoint isn’t were I’ve setted it. I use the <%@ include … %> statement.
    When I set the breakpoint to the line 4 in the example below, the debugging starts at line 4 of file “header.txt”. Is this now a MyEclipse or a Tomcat bug? Can you help me to solve this problem?

    Thanks

    Example:
    ———–

    <%@ page contentType=”text/html; charset=iso-8859-1″ language=”java” import=”java.sql.*” %>
    <%@ include file=”header.txt” %>
    <%
    String name = “swisswheel”;
    %>
    Hello <%= name %> <br>
    <%@ include file=”footer.txt” %>

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSP Debug doesn’t work correctly (Tomcat 5.0.16) [Dup]

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