Phpstorm Drupal



One of the great advantages of an IDE over a text editor is the ability to easily run a debugger. In this lesson you'll learn how to configure PhpStorm to use XDebug. We'll walk through getting XDebug set up, and then how to debug, including setting breakpoints.

Phpstorm Drupal Twig Debug

Note: From the menu bar, PhpStorm > Preferences > PHP > Debug will apply settings to the current project as described in the video.

PHPStorm will begin indexing the files and detect that it is Drupal project. It will prompt you to enable the Drupal coding standards, indicate which directory contains the installation path, and if you want to set PHP include paths. All of that is optional but recommended, especially if you want to use this VM for long term development. 1) Set up a project for Drupal 8 in PHPStorm. Open PHPStorm and select 'Create New Project from Existing Files'. In the next screen, select 'Web server is installed locally, source files are located under its document root.' And press 'Next'. In the next step, PHPStorm will ask you to select the root folder of the Drupal.

Phpstorm Drupal 9

Please note that this series covers PhpStorm versions 6 and 7 only.

Drupal

Phpstorm Drupal Code Sniffer

For the latest documentation (including up-to-date videos), see JetBrains documentation.

Phpstorm Phpcs

JetBrains PhpStorm is a commercial PHP IDE that you can configure to work with your Pantheon sites. This guide explains how to use the Composer integration of JetBrains PhpStorm to install Drupal 8. PhpStorm from JetBrains is an IDE for PHP and Drupal that can be immensely useful in developing, testing, and debugging a Drupal website. It includes both a rich code editor and a visual debugger supporting Xdebug. This topic describes how to set up PhpStorm to support developing your Drupal website with Acquia Dev Desktop.