Back to Blog
Xdebug phpstorm windows7/13/2023 Press telephone icon with a red symbol with title "Start listening for PHP Debug Connections": telephone should appear with some waves now.Set for your "Project files" Moodle root the "Absolute path on the server" as "/var/www/html".Port: must be the port you're using for the web server.Configuration: check "Filter debug connection by IDE key".Name: "xdebug localhost" (or what you want to).From the main Moodle directory open terminal and run:.You can work on Javascript development by add Grunt configuration: Note: click on the link to download the necessary drivers directly from IDE.Click " " in the top left and add "Database source" for your database.Click on the "Database" tab to see the database window." and select your new PHPUnit configuration to run Click "Use alternative configuration file" and select your phpunit.xml file.Add PHPUnit configuration by clicking on " ".Tell PHPStorm where is composer - go to "Preferences / PHP / Composer", fill in "Path to PHP executable", "Path to composer.phar", "Path to composer.json" and make sure the option "Add packages as libraries" is enabled.You can deactivate warnings for specific exceptions (in particular the coding_exception, which is unlikely to be catched in your code) by going to Settings > PHP and add them to 'Unchecked Exceptions' under the 'Analysis' tabįollow the instructions in the README PHPUnit integration.(more info:, and a "feature request" to improve it: ) If PHP Tools debugging session was started before a configuration change, it is recommended to close it by exiting its systray icon or restarting Visual Studio."mdl_", // all ` to Tools > Databases > user parameters If you do not see the section above in your phpinfo output, there may be something wrong with your PHP configuration or you may need to restart your web server to let PHP update its configuration. You should see the Xdebug section in the output. Open the corresponding URL in your browser. To verify your Xdebug installation, follow these steps:Ĭreate a simple PHP file containing the following: Note that restarting nginx will not reload php.ini! You will need to restart PHP, or your server. Change Xdebug port to 9001 both in php.ini and in Visual Studio settings. ![]() Note: nginx server using FastCGI may block port 9000 by default. The default value is 9000 (For Xdebug 3 it's 9003) and it is usually enough just to leave it as it is. Xdebug.remote_port setting has to be the same as in PHP Tools options (in Visual Studio, Tools | Options | PHP Tools | Advanced).
0 Comments
Read More
Leave a Reply. |