Connecting the Debugger to a running process
To connect the Debugger to an already-running virtual machine:
- When launching the process, enter
-Xdebug
in the Java virtual machine's parameter list (after-classic
when running on HotSpot) and note the agent password.- Choose Connect from the Debug menu or toolbar to bring up the Connect to Running VM dialog box.
- Enter the host name and agent password in the dialog box.
After clicking OK, the Debugger will connect to the running VM, and you will be able to see all threads as if you were debugging locally. If you have source code for the debugged application and you set a breakpoint in the source code, the Editor will be opened with the breakpoint line highlighted in the source.
Contents | Prev | Next | Index |