I am able to debug a remote process such as tomcat once the tomcat is running. How can I monitor the tomcat when it is starting up?

This is necessary to observe the behavior of startup servlets.

Or is there any way to launch a remote debugging program while it is being observed?