Running PHPUnit tests within PhpStorm

  1. Go to PhpStorm's settings/preferences. On Mac OS, press cmd + ,. On Linux or Windows, press ctrl + alt + s or go to File > Settings.
  2. Go to Project settings > PHP > PHPUnit.
  3. Select Use custom loader. In PhpStorm v. 8.0 or later, this option is called Use custom autoloader.

How to use Xdebug and PhpStorm with VDD

How to use Xdebug and PhpStorm with VDD

VDD supports out of the box Xdebug working configuration. You can simply start you virtual environment, open your project with PhpStorm and start debugging.


To make your debugging more comfortable you should install Xdebug helper extension in your browser. I'll use Google Chrome in this example.

Configuring PHPStorm 3.0 to debug with Xdebug


This Article explains you how to configure your PHPStorm to work with your local installation of Drupal and debug using XDebug.
If you would like to know how install Drupal or Acquia drupal or XDebug please refer to the hundreds of articles already published.

Installing PHPStorm

  1. Download trial PHPstorm
  2. Install...

Create a Project

It is assumed you already have a full Drupal environment which includes: Apache, MySQL, PHP, Drupal and XDebug
So as a result we have two assumptions:

  • Your local drupal site is at http://mylocalsite (usually its http://localhost)
  • your local drupal code is at c:\path\to\my\local\code
    which is also the DocumentRoot for mylocalsite vhost config in Apache.

So here is what you need to do:

  1. File --> New Project from Exisiting Files
  2. Choose Web Server is installed locally, source files are located under its document root --> Next
  3. enter the path your local Drupal code c:\path\to\my\local\code
  4. Local Server:
Subscribe with RSS Subscribe to RSS - PHPStorm