1. 下载
http://www.xdebug.org/download.php
放到PHP安装目录的ext下面
XDebug和PHP版本,系统是 32位还是64位有关
2. 编辑php.ini
末尾加上 :
;xdebug configuration;http://blog.youkuaiyun.com/eric6/article/details/5932029
[Xdebug]
;zend_extension_ts="D:/Program Files/PHP/ext/php_xdebug.dll"
zend_extension="D:/Program Files/PHP/ext/php_xdebug.dll"
xdebug.remote_enable = 1
; 以下xdebug 调试选项实际上是默认值
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_mode = req
xdebug.remote_handler = dbgp
http://www.xdebug.org/download.php
放到PHP安装目录的ext下面
XDebug和PHP版本,系统是 32位还是64位有关
2. 编辑php.ini
末尾加上 :
;xdebug configuration;http://blog.youkuaiyun.com/eric6/article/details/5932029
[Xdebug]
;zend_extension_ts="D:/Program Files/PHP/ext/php_xdebug.dll"
zend_extension="D:/Program Files/PHP/ext/php_xdebug.dll"
xdebug.remote_enable = 1
; 以下xdebug 调试选项实际上是默认值
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_mode = req
xdebug.remote_handler = dbgp
配置XDebug用于PHP远程调试
本文指导如何在32位或64位系统中,将XDebug与PHP结合使用进行远程调试,包括下载XDebug文件、编辑php.ini配置及设置调试选项。
1万+

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



