supremejas.blogg.se

Download xdebug docker compose
Download xdebug docker compose












Open the DemoApplication class and create a resource controller, in this example mapped with alias /echo, that is simply going to return the value from the request. Generate and Download a Spring Boot project with only "Spring Web" as a dependency. We don't want more logic in our code as the goal is to get our debug config ready in this local/docker/springboot environment.We want to put a breakpoint in the controller to demonstrate the debug configuration is working properly.We will have only one (GET) endpoint that receives a "value" as string parameter and return that back to the client.Naturally, I needed to find a way to debug my app, which is the step I want to explain here. I had to setup a local environment for a Spring Boot application running in a Docker container. Go to Run > Debug then select the configuration what we made earlier (PHP Remote Debug):Ĭ.: Remote Debug Spring Boot App in a Docker Container using IntelliJ IDEA Home |Ībout Remote Debug Spring Boot App in a Docker Container using IntelliJ IDEA Set breakpoint, and turning on Start Listening for PHP Debug Connectionī. Go to Run > Web Server Debug Validation, on Path to create validation script I point the value into my public path of project, and URL to validation script I point to my nginx docker host.Ī.

download xdebug docker compose

Go to Run > Edit Configurations., create a new PHP Remote Debug configuration:ĭ. Go to Preferences > PHP > Debug > Dbgp Proxy, set like this (note: IDE Key must same with the value of xdebug.idekey on php.ini):Ĭ. Go to Preferences > PHP > Debug, set like this:ī. After selecting an Interpreter, we are going to map our working project with container path, my working project path is $HOME/DOO/api docker and I will map into /var/www/, so change the Docker container value:Ī.

download xdebug docker compose

Go to `Preferences > PHP, add new interpreter, select new interpreter from Docker, vagrant, etc.Ĭ.

  • Here we want to configure our PHP docker interpreter.Ī.
  • download xdebug docker compose

    I hope your container runs without any problems, then now we are going to configure PHPStorm. Enter fullscreen mode Exit fullscreen mode














    Download xdebug docker compose