> -----Original Message-----
> From: Richard John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 30, 2000 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: Debugging JAVA/JSP using Sun's Forte for JAVA
>
>
> Hi,
>
> I'm doing some simple development using SUNs free Forte for
> Java Community
> Edition.  Quite impressed with it so far.  My application
> uses a very thin
> JSP and uses JAVA classes / Beans on the server for database
> connections,
> error handling and as much as possible really.
>
> My question is:  Can I invoke the debugger to debug my JAVA classes by
> executing the JSP file?  Or am I just better off writing stub
> classes to
> execute my server side classes?

In the Community Edition, this is not straightforward, but you can do it.
The Internet Edition has a much better support for debugging.

In CE, you can edit the java process parameter in "JSP Execution" to include
the required JPDA debugging switches. Then run the JSP by "Execute". This
will start the server in debugging mode. Then you connect the debugger to
the server by "Debug -> Attach to VM ...". Now the server should stop on
breakpoints in your Java classes.

Of course, writing a stub class which runs Tomcat is an option too.

Petr

>
>
> If this is not possible, can anyone convert an
> Exception.printStacktrace to
> a String for me?  :)
>
> Thanks for your help.
>
>
>
>
>               Richard John
>
>
> Caplin Systems - Introducing the Real Time Web
>             http://www.caplin.com/
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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