![]() 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 Thanks to LazyOne's I took another look into the configuration and found out that the Step Debugger is disabled. So Xdebug can clearly reach PhpStorm, all tips that I found on this JetBrains support forums, StackOverflow or otherwise on Google doesnt seem to solve the problem. 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. To learn more on upgrading to Xdebug 3, see the Upgrade guide. ![]() Xdebug 3 brings performance improvements, simplified configuration, and PHP 8 support. I run the application in the browser with Xdebug Helper enabled. Download the Xdebug extension compatible with your PHP version and install it as described in the Xdebug installation guide. I am listening in the PhpStorm for Xdebug connection (with breakpoints throughout the code): Configure Xdebug for Step Debugging With Xdebug installed and enabled, we need to enable step debugging. This command saves us the hassle of writing a custom shell script. ![]() 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: These are: Install it with Pecl Enable it using docker-php-ext-enable. Using phpinfo() I get following php configuration:Īnd I have the following PhpStorm configuration:ĭBGp Proxy (Don't really think is relevant) docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini 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. |