Drupal Development with PhpStorm and Xdebug April 1st, 2017
Senior Software Engineer Started with ICFOlson in Nov. 2015 First dive into Drupal was in 2011 Considered primarily a backend developer Certified as Drupal 8 Sitebuilder Certified as Drupal 8 Developer
Code Formatting Code Sniffing/Linting Enforce Drupal Coding Standards Code Completion Drupal Support/Documentation Integrated Drush Console/Commands Xdebug
How to setup PhpStorm for Drupal Development Documentation from JetBrains http://bit.ly/2opl58E
Lets Prepare PhpStorm for Xdebug In PhpStorm, go to the PhpStorm > Preferences menu. Under Languages and frameworks, expand PHP. Click Debug. In the xdebug section, select Can accept external connections. Confirm that the Debug port is set to the default value of port 9000. Click OK to save your changes. Go to View and click Toolbar, which has an icon for turning listening on and off
Lets prepare Acquia Dev Desktop to include Xdebug Open the Acquia Dev Desktop > Preferences menu. In the Config tab, under Stack configuration files, find the php.ini path for the version of PHP that you are using, and then click the Edit link next to it. Your php.ini file will open in a text editor. Search for a line that contains xdebug.so and uncomment it by removing the ; (semicolon) at the beginning of the line zend_extension="/Applications/DevDesktop/php5_5/ext/xdebug.so” Add “xdebug.remote_enable=1” to your php.ini file
Continued…... Add your Acquia Dev Desktop website as a project in PhpStorm Configure remote debug In the Run menu, select Edit Configurations. In the Run/Debug Configurations window, click the plus sign (+) to add a new configuration, and then select PHP Remote Debug.
Continued… In the Name field, provide a meaningful name. Click the box next to the Server list to add a new server. Provide a meaningful name for the server. Add the hostname and port that your local website uses under Acquia Dev Desktop. Ensure that the Debugger selector is set to Xdebug. Click OK to save your server configuration. Confirm that your new server is selected in the Server list, and then click OK to
And Finally
How to setup DrupalVm to include Xdebug Documentation http://docs.drupalvm.com/en/latest/extras/xdebug/ Config File https://github.com/geerlingguy/drupal-vm/blob/master/example.config.yml
Copyright 2017, ICF Olson, All Rights Reserved. Confidential and Proprietary Property of ICF Olson. Think Like People®
MidCamp Sprint Sunday, March 20 at 10 am UIC COMRB 909 S. Wolcott St (across the street from the venue) Contributors of all skill sets and levels are welcome and encouraged to join us!
¿Feedback on Joind.in? http://bit.ly/2oj9B9J
Chris Haynes chris.haynes@icfolson.com @haynescw drupal.org/u/haynescw github.com/haynescw ¿Questions?

Drupal Development w/ PhpStorm and Xdebug

  • 1.
    Drupal Development with PhpStormand Xdebug April 1st, 2017
  • 2.
    Senior Software Engineer Startedwith ICFOlson in Nov. 2015 First dive into Drupal was in 2011 Considered primarily a backend developer Certified as Drupal 8 Sitebuilder Certified as Drupal 8 Developer
  • 3.
    Code Formatting Code Sniffing/Linting EnforceDrupal Coding Standards Code Completion Drupal Support/Documentation Integrated Drush Console/Commands Xdebug
  • 4.
    How to setupPhpStorm for Drupal Development Documentation from JetBrains http://bit.ly/2opl58E
  • 5.
    Lets Prepare PhpStormfor Xdebug In PhpStorm, go to the PhpStorm > Preferences menu. Under Languages and frameworks, expand PHP. Click Debug. In the xdebug section, select Can accept external connections. Confirm that the Debug port is set to the default value of port 9000. Click OK to save your changes. Go to View and click Toolbar, which has an icon for turning listening on and off
  • 7.
    Lets prepare AcquiaDev Desktop to include Xdebug Open the Acquia Dev Desktop > Preferences menu. In the Config tab, under Stack configuration files, find the php.ini path for the version of PHP that you are using, and then click the Edit link next to it. Your php.ini file will open in a text editor. Search for a line that contains xdebug.so and uncomment it by removing the ; (semicolon) at the beginning of the line zend_extension="/Applications/DevDesktop/php5_5/ext/xdebug.so” Add “xdebug.remote_enable=1” to your php.ini file
  • 9.
    Continued…... Add your AcquiaDev Desktop website as a project in PhpStorm Configure remote debug In the Run menu, select Edit Configurations. In the Run/Debug Configurations window, click the plus sign (+) to add a new configuration, and then select PHP Remote Debug.
  • 10.
    Continued… In the Namefield, provide a meaningful name. Click the box next to the Server list to add a new server. Provide a meaningful name for the server. Add the hostname and port that your local website uses under Acquia Dev Desktop. Ensure that the Debugger selector is set to Xdebug. Click OK to save your server configuration. Confirm that your new server is selected in the Server list, and then click OK to
  • 11.
  • 12.
    How to setupDrupalVm to include Xdebug Documentation http://docs.drupalvm.com/en/latest/extras/xdebug/ Config File https://github.com/geerlingguy/drupal-vm/blob/master/example.config.yml
  • 13.
    Copyright 2017, ICFOlson, All Rights Reserved. Confidential and Proprietary Property of ICF Olson. Think Like People®
  • 14.
    MidCamp Sprint Sunday, March20 at 10 am UIC COMRB 909 S. Wolcott St (across the street from the venue) Contributors of all skill sets and levels are welcome and encouraged to join us!
  • 15.
  • 16.