php - 暂时禁用 blackfire 模块

标签 php xdebug blackfire

我已经成功安装了 blackfire 代理、cli 工具和探针,并且工作正常。我在使用 bf 进行分析时禁用了 xdebug 模块。

现在我想像以前一样使用 xdebug,但是 xdebug 不起作用,它只是不会进入调试 session 。没有断点,甚至 xdebug_break 都不起作用。制片人网站上的一句话说:

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.

有没有办法在卸载整个 blackfire 工具链的情况下禁用 blackfire 代理?将文件 /etc/php5/conf.d/90-blackfire.ini 移动到备份位置不起作用。

更新 有效的是卸载 php 代理 sudo apt-get remove blackfire-php。但我很确定一定有更好的解决方案。

最佳答案

您可以简单地编辑文件 /etc/php5/conf.d/90-blackfire.ini 并注释以下行 extension=blackfire.so。不要忘记重启 apache2 或 php-fpm

关于php - 暂时禁用 blackfire 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37161359/

相关文章:

php - 如何在 PHP 中构建键组合数组

php - 如何让连接池在 PHP-CGI PDO iSeries Access UnixODBC 连接上工作?

javascript - 在 noconflict 中加载似乎不起作用

xdebug - 在 Xdebug v3 中,如果我在单步调试时更改断点,我会得到 nginx 502 Bad Gateway

unit-testing - phpunit -coverage-html 报告路径

php - 当 php 应用程序位于 Varnish 后面时使用 Xdebug

php - 如何使用 Blackfire 分析 PHP shell 脚本应用程序或工作程序

php - 在第二个表 MySQL 上按顺序加入 2 个表时的索引