facebook

Is it possible to debug JSPs using MyEclipse

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

    Using My Eclipse i am able to debug Java files, i mean i can add break points in Java code & can add watch etc etc so it possible to debug JSP files using My Eclipse in similar fashion like debugging Java files.

    #258303

    Riyad Kalla
    Member

    You haven’t given us enough information to go on to see what the problem might be. I would suggest having a look at our FAQ, there are a lot of “How come JSP debugging isn’t working?” types of questions for multiple types of servers.

    #259041

    dissert
    Member

    I do have the same problem : I can’t use the “Add and Evaluate Watch Expression” in the debugger when using in the JSP. I am using Tomcat 5.0.
    I believe but I am not sure that with the former version of MyEclipse, it worked fine, not with 5.0.1

    #259047

    Riyad Kalla
    Member

    dissert,
    Can you give a little more details? JSP pages, because in compiled/run form, are so different from the source form, simple “watch” expressions may not resolve like you think they will. Can you for example add a watch for “page” or “session” when stopped in a JSP page? If not, what problems are you seeing? Errors or the things always evaluate to null or something else maybe?

    #259210

    Craig Peters
    Member

    I’m having the same problem too.

    “page” and “session” are available automatically on the Variables view. Manually adding either to the Expressions view displays nothing, even after reevaluating the expression. Similarly, trying to see the value of variables in JSP code is doing nothing either.

    Another symptom that might be related (?) — every time I add a breakpoint to my JSP code (in Java code areas) I get 2 breakpoints showing up in the Breakpoints view for the same line number. I’ve already relaunched Eclipse with -clean, redeployed my many time to Tomcat (I happen to be using 5.0 by the way), etc…

    Its like the others said — you can set breakpoints, and you can step thru the code Ok, but you can’t see any expression/variable values in the debugger.

    #259213

    Riyad Kalla
    Member

    craigrpeters,
    The double breakpoint issue could be causing that problem and we are aware of that problem and hope to get it fixed for the 5.0.3 release. In the mean time I will do some testing on my end and see if I can track down if this is a separate issue or not.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Is it possible to debug JSPs using MyEclipse

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