我已按照说明为Mac OS安装和配置PhpStorm可视化调试器,使用xdebug.org/wizard.php和定制说明,并完成每个步骤 .
php -v显示:
PHP 5.6.29 (cli) (built: Dec 8 2016 23:03:30)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans
在我的php.ini中(是的,我确认这是正确的ini)
[Xdebug]
zend_extension = /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host = 127.0.0.1
xdebug.remote_port=9000
我在进行更改后重新启动了Apache,但是当我将 phpinfo.php
粘贴到xdebug向导中时,它会进行分析,摘要如下:
-
Xdebug已安装:没有
-
Server API:Apache 2.0 Handler
-
Windows:没有
-
Zend Server:没有
-
PHP版本:5.6.24
-
Zend API nr:220131226
-
PHP API nr:20131226
-
Debug Build:没有
-
线程安全构建:没有
-
配置文件路径:/ Applications / XAMPP / xamppfiles / etc.
-
配置文件:/Applications/XAMPP/xamppfiles/etc/php.ini
-
扩展目录:/ Applications / XAMPP / xamppfiles / lib / php / extensions / no-debug-non-zts-20131226
任何帮助深表感谢 .
编辑:我也按照https://www.jetbrains.com/help/phpstorm/2016.1/configuring-xdebug.html的说明在PhpStorm IDE中配置调试 .
编辑2:
我的phpinfo():
-
配置文件(php.ini)路径/应用程序/ XAMPP / xamppfiles /等
-
已加载的配置文件/Applications/XAMPP/xamppfiles/etc/php.ini
编辑3:链接到整个PhpInfo()https://drive.google.com/file/d/0B5Fz1a8OLiwRYW1RR0ZnbFVndjg/view?usp=sharing
1 回答
备查:
用户遵循this教程,可以在XAMPP / OSX和PhpStorm上使用xdebug .