XAMPP phpinfo 没有检测到 php.ini 中的 Xdebug 配置
XAMPP phpinfo does not detect Xdebug configuration in php.ini
我下载了我使用的正确 PHP 版本的 .dll 文件 (php 7.2) 和 XAMPP v3.2.3 ;我将文件放在 C:\xampp\php\ext
中并将其设置在 ini 文件中并重新启动 Apache :
output_buffering=Off
zend_extension="C:\xampp\php\ext\php_xdebug-3.0.1-7.2-vc15-nts-x86_64.dll"
zend.assertions=1
xdebug.mode=debug
xdebug.client_host = "127.0.0.1"
xdebug.client_port=9000
但是,phpinfo()
仍然没有显示任何 Xdebug 配置...
有什么问题吗?我正在使用 Windows 10.
XAMPP 表示 Apache ... 因此您需要 Xdebug 的 TS(线程安全)版本(而不是像您现在尝试使用的 NTS)。
据我所知,该文件应称为 php_xdebug-3.0.1-7.2-vc15-x86_64.dll
(对于 PHP 的 x64 位版本):https://xdebug.org/files/php_xdebug-3.0.1-7.2-vc15-x86_64.dll
我下载了我使用的正确 PHP 版本的 .dll 文件 (php 7.2) 和 XAMPP v3.2.3 ;我将文件放在 C:\xampp\php\ext
中并将其设置在 ini 文件中并重新启动 Apache :
output_buffering=Off
zend_extension="C:\xampp\php\ext\php_xdebug-3.0.1-7.2-vc15-nts-x86_64.dll"
zend.assertions=1
xdebug.mode=debug
xdebug.client_host = "127.0.0.1"
xdebug.client_port=9000
但是,phpinfo()
仍然没有显示任何 Xdebug 配置...
有什么问题吗?我正在使用 Windows 10.
XAMPP 表示 Apache ... 因此您需要 Xdebug 的 TS(线程安全)版本(而不是像您现在尝试使用的 NTS)。
据我所知,该文件应称为 php_xdebug-3.0.1-7.2-vc15-x86_64.dll
(对于 PHP 的 x64 位版本):https://xdebug.org/files/php_xdebug-3.0.1-7.2-vc15-x86_64.dll