Very true.
Debugging JSP is a very complex thing. I wrote a complete chapter about JSP
debugging for the upcoming Wrox JSP book.
It is possible to do the JDB style step debugging in JSP, but it's a PITA to
do.
There will eventually be tools to automate this, but I don't think these
will be stable and suited for general use (I mean cross-platform and cross-
server) in the next few months yet.
the best solutions are
- look at the code carefully ;-)
- out.println combined with HTML comments
- build your own debug class and log the statements to that
- System.out.println()


Geert 'Darling' Van Damme


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of David Gowe
> Sent: vrijdag 7 april 2000 13:40
> To: [EMAIL PROTECTED]
> Subject: Re: How to debug a Jsp File?
>
>
> Hi Xunming!
>
> The best way that I've figured debugging JSP's is to put some comments in
> the position u wish to see a result and see if that comment is getting
> generated at the right location in the rendered page. Yeah! It may seem a
> bit crude, but I guess there is no better (and efficient) way to deal with
> this situation as you do not have any debuggers yet built exclusively for
> debugging JSP.
>
> David Gowe
>
> PS: Let me know if you get any better answer, plz!
>
> ----- Original Message -----
> From: Xunming Liu <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 07, 2000 7:41 AM
> Subject: Re: How to debug a Jsp File?
>
>
> > Hi:
> >
> > I am using SDK1.2.2 and JSWDK1.0.1. I find it's difficult to debug the
> error. Any
> > one have some good suggestion about that?
> >
> > Thx.
> >
> > Xunming
> >
> >
> ==================================================================
> =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to