![]() Find the 'Listen for PHP Debug Connections' button in your PhpStorm toolbar and click it to start listening for connections. For Firefox, use the Xdebug Helper for Firefox open in new window add-on. For Chrome-based browsers, use the Xdebug helper open in new window extension. If work, enable the firewall again, and add a rule to allow connection PhpStorm in your firewall. Install the Xdebug helper extention for your browser. 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): Create a custom run configuration for the PHP script file and specify the following Interpreter options in it: -dxdebug. In the Custom Debug Log Configuration dialog that opens, add the following lines depending on the issues you are experiencing: Issues with PHP debugging: Click OK and reproduce the issue. ![]() Configure the Xdebug Helper extension: In the Xdebug Helper options, set the IDE Key to PhpStorm (or your desired IDE key). In the popup window, click on the Options link. ~/.bashrc" to reload your shellĭocker-compose build -no-cache -force-rm -pull Select Help Diagnostic Tools Debug Log Settings in the main menu. Enable the Xdebug Helper extension: After the Xdebug Helper extension is installed, click on its icon in the Chrome toolbar. WSL2 change Linux IP every reboot time, so you should, add global variable (WSLIP) in your Linux system. I have installed the XDebug helper for chrome and PhpStorm is listening for incoming php debug connections.json file for you in the. This solution works only if you use PhpStorm on WSL2 with X server! PhpStorm 2020.3 detects strpos() usages that can be replaced with strcontains(): There are also new strstartswith() and strendswith() functions to determine if a string starts or ends with a specific substring. Small example project to show how to configure xdebug (2 or 3) with WSL2 and Docker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |