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.
...
- Select `Edit Configuration`
- Create `Remote` configuration
- Change port to match what you passed above in your JVM options
- Run the debugger
Eclipse
...
- Select Run -> Debug Configuration
- Select "Remote Java Application" -> New
- Change Host and Port to match your settings and select "Apply"
- Change Host and Port to match your settings and select "Apply"
- Click "Debug" to run the debugger.