Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Remote Debugging

Remote debugging is very useful for tracing through the source code during the execution of the application. In order to enable remote debugging, you need to provide specific JVM options that tell the servlet container (Tomcat or Jetty) to open a port to which a debugger will attach. Additionally, you need to create a debugging profile in your IDE (Intellij or Eclipse) that specifies the host and port to which to attach the debugger.

...

  1. Select `Edit Configuration`
  2. Create `Remote` configuration
  3. Change port to match what you passed above in your JVM options
  4. Run the debugger

Eclipse

...

  1. Select Run -> Debug Configuration
    1. Image Added
  2. Select "Remote Java Application" -> New
    1. Change Host and Port to match your settings and select "Apply" 
      Image Added 
  3. Click "Debug" to run the debugger. 
    Image Added