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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access