If you want to open files in PHPStorm8 directly from the Symfony debug toolbar there is a neat trick you can use. This is very helpful when you quickly want to find a controller or when you got an exception.

// /config/packages/framework.yml
framework:
  ide: "phpstorm://open?file=%%f&line=%%l"

You could also do this trick locally on your machine instead. That will not conflict with other developers in your team and it will work for all your projects.

; php.ini
xdebug.file_link_format='phpstorm://open?file=%f&line=%l'

; Alternative link syntax:
;xdebug.file_link_format='phpstorm://open?url=file://$file&line=$line'

And that is pretty much it. You dont need to install PhpStormOpener, LinCastor or any other Apple script. This will work with PHPStorm8+, Symfony2.6+ and Mac OSX.

Below is a picture to show where you should click to make PHPStorm open the controller used in this request.

![]({{ "/resources/posts/phpstorm8_exception.png" | absolute_url }}) PHPStorm8 Symfony debug toolbar

Read more about this feature in the Symfony documentation.