![]() :-|īy turning on the xdebug logging, I saw it was succesfully connecting to 192.168.99.1 so this solved the issue xdebug.remote_host=192.168.99. port by xDebug which is a Debugger for PHP We wont be using vPC in this lab. W: Remote address not found, connecting to configured address/port: 192.168.99.100:9000. mentioned (on Windows cmd: netstat -a -b): If PhpStorm (I have no mac. Your IDE should be now correctly configured. Using xdebug we can make our lives easier as every time we run a script in PHP. Now configure it like this: Make sure you associate it with the previously created server definition. Your docker environment should provide support for Xdebug in order to configure the development workflow properly. This is done with docker4drupal, but should work equally well with any Docker Compose setup. W: Remote address not found, connecting to configured address/port: 172.17.42.1:9000. On the top right, click on edit configurations: Click in the green plus sign at the top left and select PHP Remote Debug from the list. A brief guide on configuring xdebug with Docker. to setup xdebug inside your docker container and connect it with PHPStorm. When I turn on logging, and play with the xdebug_remote_host IP adress I get W: Remote address not found, connecting to configured address/port: localhost:9000. Yeah, if you want to use a tool like xdebug (here is a great tutorial about. Solution: Thanks to LazyOnes I took another look into the configuration and found out that the Step Debugger is disabled. Here is my file: /etc/php5/cli/conf.d/20-xdebug.ini zend_extension=xdebug.so So can I get phpstorm and xdebug working together for command line too? I also tried on my docker: export PHP_IDE_CONFIG='serverName=web.docker'and named the server config on phpstorm web.docker. This will tell your PhpStorm which server configuration to use. Set PHPIDECONFIG env variable to serverNamelocalhost. Instruct XDebug to connect to for command line execution or whenever connect back is not possible. I did the correct directory mapping right in phpstorm, and also ran the following on my docker-instance export XDEBUG_CONFIG="idekey=PHPSTORM" Instruct XDebug to connect back to the IP where web request came from. ![]() For http calls…IEīut when I try to run my phpunit tests, It does not connect with phpstorm ![]() I managed to get xdebug in combination with docker and phpstorm.
0 Comments
Leave a Reply. |