Why Debugging Is Tough

Server-side programs are often tougher to debug than GUI programs. Although a GUI application can be more complex in terms of code structure and callbacks, server-side applications that are hosted by an application server are more difficult to debug because they are being hosted by another program.

If you want to debug a standalone Java program, you can usually start it up in a debugger and start tracing right from the start. When you need to debug a J2EE server component (EJB, servlet, or JSP), you must find a way to use a debugger with your J2EE environment. It gets even tougher when you want to debug a JSP because you must first locate the servlet that was generated from the JSP and then debug it.

Server-side programs ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.