简体   繁体   English

空Symfony的探查器?

[英]empty Symfony's profiler?

I recently discovered that my profiler is not working. 我最近发现我的探查器无法正常工作。 Every time I try to open the profiler from /app_dev.php/_profiler/empty/search/results?ip=&limit=10 I get this empty profiler page: 每次我尝试从/app_dev.php/_profiler/empty/search/results?ip=&limit=10打开探查器时, /app_dev.php/_profiler/empty/search/results?ip=&limit=10得到一个空的探查器页面:

在此处输入图片说明

With default and customc onfiguration. 使用默认和定制配置。 Here the custom one: 这里是自定义的一个:

framework:
    profiler:
        dsn: 'file:/tmp/symfony-profiler'

And here a more precise configuration: 这里是一个更精确的配置:

framework:
    profiler:
        dsn: "file:%kernel.root_dir%/../var/cache/%kernel.environment%/profiler"

No calls are stored in theprofiler. 分析器中未存储任何呼叫。 No log keep trace of what happens under the carpet. 没有日志记录地毯下发生的情况。

Symfony needs the same file permissions to write the profiling data as it would for logs or the cache. Symfony需要与日志或高速缓存相同的文件权限来写入性能分析数据。 Does Symfony write the files if the DSN is left at the default which would write them into var/cache/dev/profiler (or app/var with an older version). 如果DSN保留默认设置,Symfony是否会写文件,这会将文件写到var/cache/dev/profiler (或旧版本的app / var)中。

It's also possible that the profiler service has been overridden, which can be checked with bin/console debug:container profiler and other such tools. 也有可能已覆盖profiler服务,可以使用bin/console debug:container profiler和其他此类工具来检查profiler服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM