XDebug profiling in PHP - can't get output

后端 未结 5 519
借酒劲吻你
借酒劲吻你 2021-01-11 09:55

I\'ve got a strange issue. I\'ve setup XDebug to profile a PHP application we\'re working on. I believe everything is setup correctly but I get no output when I run it. M

相关标签:
5条回答
  • 2021-01-11 10:28

    Comment out xdebug.profiler_output_dir and xdebug.profiler_output_name and see whether you can find the output under /tmp/.

    0 讨论(0)
  • 2021-01-11 10:29

    Also, beware of access restrictions, such as access rights, groups, owner and SElinux...

    0 讨论(0)
  • 2021-01-11 10:31

    The full path was required, not just the path:

    xdebug.profiler_append=1
    xdebug.profiler_output_dir ="/home/username/debug/xdebug/profiler_output_dir"
    xdebug.profiler_output_name = "cachegrind.out.%s.%H"
    
    0 讨论(0)
  • 2021-01-11 10:39

    There is also problem with /tmp folders on some distributions, i couldnt get output on centos 7 and then i found this

    So, i have set

    xdebug.profiler_output_dir=/home/jirka/profile

    chmod 777 /home/jirka/profile and its ok now.

    0 讨论(0)
  • 2021-01-11 10:49

    Another possible cause of this issue is the permissions on the folder of profiler_output_dir.

    Adding write permissions to the group and owner resolved the issue for me:

    sudo chmod go+w /home/dimitris/cachegrind/
    
    0 讨论(0)
提交回复
热议问题