Thursday, October 7, 2010

How to Debug Application Initialization Using Eclipse

We use weblogic here. In Eclipse, you can start a server in the debug mode. Usually you do the remote debugging of an Java enterprise application by setting break points in the source code and then invoke the application by using the web browser or other clients. But this process does not apply to the initialization process of the application. After the application is deployed and is running, its initialization such as the context initialization has already been finished. What if you want to debug the initialization?
You can start the application in the debug mode from Eclipse. Set the break points in the source code that is called during the initialization. Then invoke the ant build target from Eclipse to deploy the application again. The deploy process will stop at the break points during the initialization and you can debug it now.

No comments:

Post a Comment