|The best way to debug your servlets is to use SE 5.x AS (or higher) running with it's built-in webserver, running inside the IDE of your choice.
Here are some suggested steps to accomplish this:
- Download and install SE 5.x AS (or higher) and during the install select the option to have it run with it's built-in webserver.
- Make sure that you can get that running on its own properly by testing it to ensure that it can serve
your own servlets.
- Then study it's Start Script (StartServletExec.bat or StartServletExec.sh) and use what you see there regarding how it is started, together with the documentation for your IDE to configure your IDE to run the SE AS built-in server within the IDE's JVM.
- Once you have it running inside your IDE you can then set breakpoints in your servlet code, make requests from your browser, and then step through your servlet code.
- To stop debugging, you may either tell eclipse to "stop debugging" or you may run StopServletExec directly in order to send a stop message to the SE AS built-in webserver that's running inside your IDE so that it will shutdown gracefully.
An SE AS instance that runs behind a commercial-grade webserver such as IIS, Apache, or SJSWS may also be run inside your IDE. It does not have to be an SE AS instance that runs behind SE's built-in webserver. Some useful information about doing that inside the Eclipse IDE is given here
The ServletExec Debugger [SED] was a free, separate product that used to be used for this, but now SE AS (5.x or higher) with it's built-in webserver is what we recommend. SED has been discontinued.
If you still require SED, then SED 4.2 can be obtained from our FTP server.