PhpStorm Symfony profiler

1.8k views Asked by At

How can I make symfony profiler work in phpstorm? It supposed to be in the status bar, but when I open that window, it always says: "Nothing here". Cache dirs are defined correctly in the configuration, symfony plugin itself works fine. But the profiler never shows information.

PhpStorm: 8.0.3, Symfony plugin: 0.11.92

1

There are 1 answers

0
ScayTrase On

Profiler records are automatically picked up from your cache (i.e from app/cache/dev/profiler/index.csv).

  1. Ensure you are running server in dev env. The profile is collected only in dev mode

  2. Check that file exist within your local code.

Do you run the symfony on the same machine that you phpstorm code is located? If no you should condfigure the phpstorm deployment to fetch the cache from remote host for you automatically.

  1. Ensure you have web profiler enabled for symfony (enabled in your AppKernel and with config)

http://symfony.com/doc/current/reference/configuration/web_profiler.html

web_profiler:
  toolbar: true