Debugging in Intellij IDEA - LibreHIS/librehis GitHub Wiki
-
Start Tomcat in debug mode:
tomcat_install_dir/bin/catalina.bat jpda start
-
Setup debugging mode via Intellij IDEA:
2.1 Edit configurations -> Add new -> Remote. Set "name" to "Tomcat remote" and port to 8000.
-
Run:
Once Tomcat debug mode is on, use debug running configuration in Intellij IDEA.
If connection successful, in log you will see: Connected to the target VM, address: 'localhost:8000', transport: 'socket'