facebook

JSP debuggin

💡
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 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #211270 Reply

    Hello, I am using Eclipse 3.0 on win32 with the latest beta of MyEclipse. I am using tomcat 5.0.24 and when I debug any of my jsp pages, the debugger jumps around from line to line, not apparently following the logic of my pages. Is this a known problem?

    #211273

    Scott Anderson
    Participant

    That depends. Are you trying to debug Java code? Or are you looking at exclusively taglib calls and EL expressions?

    #211277

    I am trying to debug java code in my .jsp

    #211292

    Scott Anderson
    Participant

    Could be that you don’t have Tomcat configured for debug compilation of JSPs. Check the settings for org.apache.jasper.servlet.JspServlet in <tomcat-install>/conf/web.xml to ensure it’s enabled for debugging.

    Also, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #211434

    Scott,
    I set the classdebuginfo to true in the web.xml, but that does not help any, my debugging still just jumps around.
    What do you need from me to get this fixed?

    #211436

    Riyad Kalla
    Member

    What is the Build ID of the Eclipse install you are using and MyEclipse? Are you staring Tomcat with MyEclipse? Are you using the same JDK to run Tomcat as you are running Eclipse?

    #211439

    The build ID of Eclipse is 200406251208
    The MyEclipse is 3.7.200
    Yes I am starting Tomcat with MyEclipse and I am using the same JDK for both Tomcat and Eclipse.

    #211443

    Riyad Kalla
    Member

    Is it straight JSP or a ton of taglibs? I’ve seen this behavior with a lot of taglibs before…

    #211452

    Here is a simple example straight from one of my pages.
    <%@ include file=”/WEB-INF/common/LayoutBegin.jsp” %>
    <form name=”NewForm” id=”NewForm” method=”POST” action=”/AddNew.jsp”>
    <table>
    <tr>
    <td>
    <%@ include file=”/WEB-INF/common/SomeForm.jsp” %>
    </td>
    </tr>
    <tr>
    <td>
    <center><input type=”submit” value=”Add Me”></center>
    </td>
    </tr>
    </table>
    </form>
    <%@ include file=”/WEB-INF/common/LayoutEnd.jsp” %>

    What happens is I put a break point on the second line, I step over and the cursor advances a line, I step over again and the cursor advances a line, I step over again and the cursor advances, I step over again and the cursor jumps back to the second line, I step over and the cursor advances two lines, I step over over and the cursor jumps back. It keeps jumping around erratically.

    #211455

    Riyad Kalla
    Member

    I was able to create a small test project that exhibits this behavior and I will file a bug with it attached. I can’t give you an ETA on the fix, but appreciate the help finding this.

    #211458

    I hope you guys don’t mind if I check in once a week to find out how this is comming along.

    #211464

    Riyad Kalla
    Member

    You are welcome to ask and I’ll keep my eye on that bug to see what happens.

    #212904

    Was this issue addressed in the GA release?

    #212906

    Riyad Kalla
    Member

    No it wasn’t, I’m checking if we can get it into 3.8.1.

    #212909

    That would be great.

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: JSP debuggin

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