Skip to content

Remote Debugging

Christian Würtz edited this page Apr 14, 2014 · 1 revision

This is a short introduction into remote debugging with IntelliJ.

JVM Parameters

To enable a remote debugging connection to a JVM, it is necessary to set some command-line arguments. In our case we start each JVM with the following parameters:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9011

Setup in IntelliJ

  1. Go to Run/Edit Configurations...
  2. Create a new target of the type "Remote" (by clicking on the green plus sign in the top left corner)
  3. Setup the URL, e.g. wally002.cit.tu-berlin.de with port 9011

Now you can setup up your breakpoints as usual. Afterwards, you can connect to the remote JVM.

Clone this wiki locally