SSH into your Nitro machine using nitro ssh, then run your PHP script from the console and any breakpoints you’ve set will be hit. PhpStorm est un diteur pour PHP, HTML, CSS et JavaScript. Load the site in your browser and whatever breakpoints you’ve set will be hit. modifier - modifier le code - voir Wikidata (aide) Consultez la documentation du modle. In the browser helper’s options, choose “PhpStorm” and save.Ĭhoose “Debug” on your browser’s Xdebug helper. PHPSTORM DOCUMENTATION INSTALLInstall the Xdebug helper in your favorite browser.Check “Filter debug connection by IDE key” and enter PHPSTORM.Ĭhoose “Run” → “Start Listening for PHP Debug Connections”. (Use nitro context if you need to check the path, and keep in mind this is the project root and not necessarily the web root.)Ĭhoose “Run” → “Edit Configurations.” and create a new “PHP Remote Debug” configuration, selecting the server you just created. The absolute path will look like /home/ubuntu/sites/my-site, where my-site reflects your actual project’s folder name in the Nitro machine. (“Preferences” → “Languages & Frameworks” → “PHP” → “Servers”.)Įnable “Use path mappings” and set your existing project root to the absolute path on the server. # Configuring PhpStormįirst, you’ll need to configure PhpStorm to listen for requests from the browser or console.Ĭreate a new server in PhpStorm using your machine’s domain name. You can use nitro xdebug off to disable Xdebug without having to restart the machine. Once you’ve created a machine, you can run nitro xdebug on to enable Xdebug (opens new window) and set it up for automatic connections from your host machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |