Xdebug phpstorm3/31/2024 Click on the Magic Button to 'Start Listen PHP Debug Connections' In the CLI, we can then run any drush command inside the drupal docroot and a breakpoint should trigger on the first line of drush.php. Once Xdebug is installed and the XDEBUGCONFIG variable set up, start a new project in PHPStorm. Create file /usr/bin/debug with contents added below (file debug below) Make it executable $ sudo chmod 0777 /usr/bin/debug. Run $ php -i grep ini and look or.custom.ini - depends on configuration (mine was in /etc/php5/cli/conf.d/zzzzcustom.ini) Add following xdebug.remotehost = 11.22.33.1, when box ip is 11.22.33. This contains the server name to be used, which PhpStorm maps to the configured servers for your project. Now, to get Xdebug over the CLI to work we need to ensure a specific environment variable is present: PHPIDECONFIG. Xdebug integration is disabled by default as it causes a roughly 20% performance hit. Xdebug can be used to debug both web requests as well as cli scripts (e.g., Drush commands).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |