![]() ![]() Now, I would like to share how we can build upon our previous Dockerfile in a way that Xdebug can run directly from Docker and also connect it with PhpStorm. If work, enable the firewall again, and add a rule to allow connection PhpStorm in your firewall. Xdebug in PHPStorm with Docker php xdebug phpstorm docker In my last post, I've talked about how to configure Xdebug in VSCode with Docker. Comment Xdebug 3 setting lines adn uncomment Xdebug 2 setting lines. Turn Phpstorm debugging on - icon or (Run | Start Listening for PHP Debug Connections)Ĭhange Dockerfile.Add breakpoint in src/index.php in line 6.If you wound use xdebug 3 instead 2 install at lest PhpStorm 2020.3 version and checkĪdditionally listen on Xdebug 3 default port 9003 in settings (Settings | Languages & Frameworks | PHP | Debug) or change default listening port from 9000 to 9003.Īdd mapping in Servers setting (Settings | Languages & Frameworks | PHP | Servers): ![]() ~/.bashrc" to reload your shellĭocker-compose build -no-cache -force-rm -pull WSL2 change Linux IP every reboot time, so you should, add global variable (WSLIP) in your Linux system. This solution works only if you use PhpStorm on WSL2 with X server! Small example project to show how to configure xdebug (2 or 3) with WSL2 and Docker. XDEBUG 3 Configuration with Docker and PhpStorm XDebug 3 only started working out of the box with PhpStorm version 2020. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |