facebook

debugging jsp

💡
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. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #245059 Reply

    kulkarni_ash
    Member

    Hi
    I am trying to debug a jsp using tomcat 5.0.28, I ran tomcat using JPDA and was able to attach to tomcat from eclipse,
    My problem is i am not able to see any variable values inside jsp. For example suppose i have following code in the jsp
    try {
    String name = “abc”;
    String abc = “xyz”;
    }
    catch(Exception exc) {

    exc.printStackTrace();
    }
    If i take my mouse over name, or select variable name in debug mode, i dont see the value in name, nor can i change it?
    So is this how debug works for jsp? Because when i debug a java class i can see the value as well as change the value data.

    Ashish

    #245096

    Scott Anderson
    Participant

    Ahish,

    Rather than using the JPDA directly, please have a look at our Working with Web Projects quickstart here: http://www.myeclipseide.com/images/tutorials/quickstarts/webprojects/

    It goes over in detail how to set up debugging on Tomcat and will likely answer your questions.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: debugging jsp

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