Mike Cannon-Brookes <[EMAIL PROTECTED]> wrote:
>How does one debug a servlet in JSDK2.1? The NullPointerException message
is
>not in the least bit useful for a long complex servlet after staring at it
>for a long while. ;)
>
>Is there no way to step through and debug the servlet code? (eg using
>breakpoints, variable / thread viewing etc?)

There are many ways listed in the FAQ:

  http://www.purpletech.com/java/servlet-faq/#debug


One way that is not in the FAQ (though I just asked Alex to add it) is this:


Get ServletExecDebugger from New Atlanta <http://www.newatlanta.com/>. It
allows you to use your IDE's debugger, it's free, and it doesn't require
that you use ServletExec for development or deployment.

Here's the blurb from the web site:

"The ServletExec Debugger 2.1 is a basic web server written in Java that has
the full ServletExec servlet engine built-in. The ServletExec Debugger lets
you develop and debug servlets within your favorite Java IDE in an
environment that very closely simulates the ServletExec deployment
environment. Finally, servlet source code debugging! No more tedious
debugging via System.out.println()!

When you're finished debugging your servlets, you can put them into
production by simply copying the servlet class file(s) and ServletExec
configuration files to a deployment server.

The ServletExec Debugger comes with detailed installation and debugging
instructions for the following popular Java integrated development
environments (IDE):

- Symantec VisualCafe 2.5 and 3.0
- Borland JBuilder 2
- IBM VisualAge for Java 2
- Metrowerks CodeWarrior Pro 4
- Sybase PowerJ 2.5
- Microsoft Visual J++ 6.0

The ServletExec Debugger 2.1 is FREE for everyone. This is not a demo or
limited in any way! Download <http://www.newatlanta.com/downloads.html> your
copy today!"



Erik

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to