4/19/2023 0 Comments Xdebug phpstorm ubuntu![]() If you stumble in the process write in the comments bellow and I will try to help you. If you find this tutorial helpful please share it with someone who might need it. ![]() Now you can easily debug your Magento application. Also make sure your Chrome debug extension is enabled or that you are sending the XDEBUG_SESSION_START parameter in the request. In your code, create a break point by clicking on the right side of the line number, and a red dot appears. In the Console tab of this window the message is displayed “Waiting for incoming connection with ide key PHPSTORM” A debug window will open at the bottom of PHPStorm. Debugįirst start the SSH tunnel, then go to Run -> Debug and choose your debug configuration. You can find the extension here and can be easily configured for PHPStorm. Install Xdebug helperīecause for each request I want to debug I need to use the parameter ?XDEBUG_SESSION_START=PHPSTORM I installed a chrome extension that I find it very useful and I share it with you. Ssh -R 9000:localhost: 9000 username_goes_here 4. To create the SSH tunnel use the command: A thorough explanation of the process you can read it here. What you need to do is to run the following command from your local machine. Create the SSH tunnel to the remote serverīecause in this example we are doing a remote debugging we need to create an SSH tunnel to the remote server. Make sure also that you check the “Use path mappings” checkbox and fill in your mappings.Īt this moment PHPStorm can use your debug configuration. When creating your server enter your specific details for host, port and choose Xdebug as debugger. Fill in a name for your configuration and choose your server if you previously created it. Go to Run -> Edit Configurations and create a new PHP Remote Debug configuration. The next thing to do after you have the Xdebug loaded into PHP is to configure PHPStorm to listen and respond to the incoming Xdebug requests. To be sure that all went ok, use phpinfo() to check if the extension is loaded. Now go ahead and restart Apache or PHP-FPM. Make sure to change the path to xdebug.so with the one you got from the installation. zend_extension = xdebug_module_path_goes_here If you only provide the name of the extension, PHP will look for it in its default extension directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |