douwei2966 2015-06-09 15:26
浏览 64

PhpStorm Symfony剖析器

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条回答 默认 最新

  • duanji1924 2016-09-23 19:23
    关注

    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
    
    评论

报告相同问题?