PHP

Xdebug

xdebug xdebug。模式= xdebug调试。Start_with_request =yes xdebug.log_level = 0

这也适用于调试从CLI调用的php。

请注意

一定要避免以错误的顺序加载Zend扩展。看到

php -v php 8.0.9 (cli) (built: Jul 29 2021 08:52:24) (NTS)版权(c) php Group Zend Engine v4.0.9,版权(c) Zend Technologies with Zend OPcache v8.0.9,版权(c), by Zend Technologies with Xdebug v3.0.4,版权(c) 2002-2021, by Derick Rethans

确保它不是:

PHP 8.0.9 (cli) (build: Jul 29 2021 08:52:24) (NTS)版权(c) PHP Group Zend Engine v4.0.9,版权(c) Zend Technologies with Xdebug v3.0.4,版权(c) 2002-2021, by Derick Rethans with Zend OPcache v8.0.9,版权(c), by Zend Technologies

你可以看到东西是如何加载的,以什么顺序

PHP -i #等价于

在发布之前编译PHP测试版

一个快速关于如何编译PHP的指南用它来测试Matomo:

Baidu