phpstorm

warning: Creating default object from empty value in /var/drupal/modules/taxonomy/taxonomy.pages.inc on line 33.

Open PHP stack trace links in PhpStorm

Inspired by a tweet from Wouter, i wanted to configure my setup to open stacktrace links directly in PhpStorm. Turned out there was more involved than i thought at first. Documentation is sparse and confusing, so i want to record the steps i needed here. Basically you need to configure xdebug.file_link_format and make your system handle a new protocol. Its less complicated than it sounds:

Configure XDebug

Just configure the xdebug extension in your php.ini to set
xdebug.file_link_format = pstorm://%f:%l

Syndicate content