Xdebug: Could not connect to debugging clientĪnd added: xdebug.client_host=įollowing LazyOne's comment I updated to Xdebug v3 configuration settings. Xdebug.remote_log=/var/Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-( RUN pecl install xdebug & docker-php-ext-enable xdebugĪnd this is my original Xdebug configuration: I install Xdebug in the following way in my php-fpm Dockerfile: # Install xdebug Make sure Xdebug accepts connections and listens on port 9000 (should be default configuration). Thanks to LazyOne's I took another look into the configuration and found out that the Step Debugger is disabled. In PHPStorms preferences, go to the PHP > Debug section. If I try to use Debugger Configuration validation in PhpStorm I get the following: There is no blocking you would expect from breakpoints and no callback to PhpStorm. I run the application in the browser with Xdebug Helper enabled. I am listening in the PhpStorm for Xdebug connection (with breakpoints throughout the code): I use Chrome's Xdebug Helper plugin to send the session keyĪnd in phpinfo() I can see that the PHP receives the Xdebug session key: Using phpinfo() I get following php configuration:Īnd I have the following PhpStorm configuration:ĭBGp Proxy (Don't really think is relevant) However, sometimes when you try to run Docker commands. docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini Docker is a popular platform for building, shipping, and running applications in containers. Inside docker-compose.yaml I have following configuration for my app container: version: "3.7"Ĭommand: /var/www/docker/php/application-init.sh I read different articles and other threads, but still it's not working. I am trying to make Xdebug work for Docker container on Windows with PhpStorm.
0 Comments
Leave a Reply. |