1,首先新建一个php文件,加入phpinfo();code,查看PHP版本和php.ini的位置。
2,打开php.ini,在最后加入
[XDebug]
extension="C:\MyApplication\MAMP\conf\php5.6.3\php_xdebug-2.3.1-5.6-vc11.dll"
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
3,重启apache服务,使用phpinfo();可以查看到xdebug配置信息。
2,打开php.ini,在最后加入
[XDebug]
extension="C:\MyApplication\MAMP\conf\php5.6.3\php_xdebug-2.3.1-5.6-vc11.dll"
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
3,重启apache服务,使用phpinfo();可以查看到xdebug配置信息。
本文介绍如何配置Xdebug进行PHP调试,包括找到php.ini路径、设置Xdebug参数、重启Apache服务等步骤。
727

被折叠的 条评论
为什么被折叠?



