![]() ![]() Open your browser and open your localhost Moodle site.įinal note: Every time you start the webserver container, ONLY if you're using a linux host, you have to run the script for adding the .įinal note 2: This method also works if your docker containers are in a different host from localhost: you just need to specify the proper server name and port.įinal note 3: This configuration also allows you to debug CLI scripts.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 you did, the page will be waiting for you to do something in PhpStorm (like continue execution)."mdl_", // all ` to Tools > Databases > user parameters If you're trying to use access a page of your application and it seems to be stuck "spinning" without the page ever loading, make sure you didn't accidentally leave debugging turned on in PhpStorm. When you're done debugging, don't forget to stop PhpStorm from listening for Debug connections in the Run menu (or click the "Stop Listening." icon). You can also use function keys.step over lines of code with F8, step into a function with F7 and run to the next breakpoint (or to completion if no more breakpoints are defined) with F9. ![]() You can use the icons in the Debug panel to navigate through the code. The Debug panel should now be visible showing the line number where it stopped as well as all the variables that are available for you to inspect. The browser will appear to sit there and "spin" like the page is still loading when debugging is active. When you've done both, it will look like: In PhpStorm, choose your Remote Debug run configuration in the drop down and click the Start Listening for Debug > Connections button. To actually debug, debugging needs to be turned on both in the browser (see link in Resources below) and in PhpStorm. Enter "PHPSTORM" in the Ide key (session id) field.į. In the Directory field, enter the path to the folder where your local repository will be created. Specify the URL of the remote repository that you want to clone. ![]() In the Get from Version Control dialog that opens, select Git from the list. * Enter the absolute path to your web root directory in the _Absolute path on the server_ section for the webapp directory.Į. Click Get from VCS in the upper right corner. * Select Xdebug in the _Debugger_ drop down. * Enter 443 for the _Port_ since if your site is accessed via HTTPS. Add a new server by clicking the green '+' icon. Choose a server by clicking the '.' button beside the Servers field.ĭ. Add a name like "Remote Debug" in the Name field.Ĭ. Click the green '+' icon and choose PHP Remote Debug from the drop down.ī.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |