On AS Java, you can debug running applications on the fly, without the need to restart and reconfigure server processes. The Developer Studio is the tool to use for attaching to the server JVM and monitoring the application’s execution.
More information: Starting Remote Debugging.
More information: Stopping Remote Debugging.