I've sucessfully installed the blackfire agent, cli tool and probe and it works fine. I've disabled the xdebug module while profiling with bf.
Now I want to use xdebug as I did before, but xdebug does not work, it just won't enter a debugging session. No breakpoint and not even xdebug_break
work. A quote from the producers website says:
Known incompatibilities
Please note that PHP compiled with debug are not supported and that the Probe may conflict with XDebug or XHProf; disable those extensions when enabling the Probe.
Is there a way to disable the blackfire agent WITHOUT uninstalling the whole blackfire tool chain ? Moving the file /etc/php5/conf.d/90-blackfire.ini
to a backup location didn't work.
Update
What works is uninstalling the php agent sudo apt-get remove blackfire-php
. But I'm pretty sure there must be a better solution.
答案 0 :(得分:3)
您只需编辑文件/etc/php5/conf.d/90-blackfire.ini
并对以下行extension=blackfire.so
发表评论即可。别忘了重启apache2或php-fpm
答案 1 :(得分:0)
您可以运行下一个命令来关闭 PHP 扩展/模块:
$ sudo phpdismod blackfire
这个命令的反面是:
$ sudo phpenmod blackfire
要应用所有更改,您必须重新启动服务。示例:
$ sudo service php7.4-fpm restart