PHP XDebug (Windows) 设置

来源:互联网 发布:台服魔兽网络代理 编辑:程序博客网 时间:2024/04/30 08:43

XDebug下载地址:http://xdebug.org/download.php 

将php_xdebug-x.x.x-xxx.dll重命名为php_xdebug.dll

并将php_xdebug.dll移动到php的ext文件夹中

在PHP.ini最后一行加入如下设置

[XDebug]

zend_extension = "\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1 ;一定要设为开启状态,不然会出现:waiting for XDebug session 停在:57%
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"

xdebug.trace_output_dir = "\xampp\tmp"

 启动Apache,用phpinfo()函数查看是否启用XDebug

如果看不到,那么可能跟PHP的版本号有关


原创粉丝点击