facebook

JSP Debug Variable Inspection

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #223587 Reply

    jsuggs
    Member

    What do I need to do so I can inspect a variable when debugging my jsp’s? I have no such option in the debugger. I have used other IDE’s which support this so I know it’s possible.

    Thanks,

    Jerry

    #223617 Reply

    Riyad Kalla
    Member

    Jerry,
    Usually you can set a breakpoint, then find the variable and “watch” it, which will add it to your watch list and you can see its value change as you step through your code.

    Was this what you wanted?

    #223627 Reply

    jsuggs
    Member

    Not really. I forgot to put it in my original question but the main thing would be evaluating methods. You know, highlighting an expression and doing inspect the same way you can do with Java classes in debug. I have seen this done with JSP’s in WSAD, JBuilder and IDEA and was wondering if there was a way with MyEclipse. I’m deploying to Tomcat BTW.

    #223628 Reply

    Riyad Kalla
    Member

    You know, highlighting an expression and doing inspect the same way you can do with Java classes in debug.

    Have you tried it? I’m not aware of any debugging features that are available to Java classes and not to JSP pages… please give me an example of what you mean.

    #223667 Reply

    jsuggs
    Member

    Here are some screenshots detailing what I’m talking about.

    Here I am debugging a java class. You see the many debug options I have. The main one I like is inspect so I can see what the result of a method call would be.

    Now here is what I see debugging a jsp.

    Thanks.

    Jerry

    #223669 Reply

    Riyad Kalla
    Member

    Ahhh, I see what you mean. I will file this enhancement, in the mean time you can work around this by “watching” the expression you want evaluated, for example “request.getSession(true)” and it will be added to your watch list and provide a value for it like ‘inspect’ does.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JSP Debug Variable Inspection

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