
You create a remote debug configuration and add a special Before launch task for it: Launch Docker before debug, which defines the Docker configuration that you want to run and attach to. IntelliJ IDEA includes a special type of run/debug configuration for remote debugging. But what about debugging? Well, starting from version 2019.1 you can debug Java applications running in Docker containers directly from IntelliJ IDEA.Īn application running inside a Docker container is treated as a remote application, so you can attach the debugger to it. You can use special run configurations to run your application in a Docker container and see how it will behave in an environment identical to production. The Docker integration enables you to build or pull Docker images and run Docker containers directly from IntelliJ IDEA.
