Deploy and debug a Java web application inside a container running Tomcat
note
Before you begin, install and run Docker, enable the Docker plugin, and connect to the Docker daemon in IntelliJ IDEA. For more information, refer to Getting started with Docker in IntelliJ IDEA.
note
For convenience, you can configure a
Before launch
task in theremote_tomcat_debug
run configuration so that it first starts thedocker_compose
configuration. However, there is an issue that Docker Compose needs some time to start the service, and remote JVM debug does not wait for the service. There is a fix for this that will be available in the next major release: 2023.3. For more information, refer to IDEA-172781.
Thanks for your feedback!