Good support for debugging from language runtime and IDE can considerably reduce the time required for debugging. Java runtime and Eclipse provide excellent support for debugging remote applications. To debug a remote application, launch it with the debug parameters for JVM and connect Eclipse Debugger to it. You can then debug the remote application just as you would debug the local one – set breakpoints, perform step operations, and inspect variables. You can also change the variable values in the application when its execution is suspended.
In the next chapter, we will see how to develop JEE applications using EJBs. We will use the GlassFish server in the next chapter. Although this chapter explained the debugging of JEE applications deployed in Tomcat, you can use the same techniques in the GlassFish server.