In order to debug any Drush/Symfony or CLI command using Xdebug with PhpStorm or a similar IDE, you will need to set two additional environment variables PHP_IDE_CONFIG + XDEBUG_SESSION_START and configure the path mapping in your IDE accordingly. Lando mounts your project root to /app in the application server, so you might map something like /users/myname/myproject/ to /app.īy default, our Drupal recipes come with Drush out of the box and also the Symfony recipe has a console tooling, which can be debugged with the following config. It may also ask you to map the application server file paths to the paths on your host machine. PhpStorm should now automatically open the Debug window and produce debug output if a breakpoint is reached. Ive tried the XDebug Chrome Plugin and the PHPStorm XDebug Generator Bookmarks aswell as enabling 'Start listening for PHP Debug Connections' in PHPStorm. Select "Debug" from the menu to tell your browser to send the appropriate parameters to Xdebug so that Xdebug activates when a request is made.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |