在php.ini中配置如下:
;[Xdebug]
zend_extension="D:/Program/PHP/ext/php_xdebug.dll"
xdebug.auto_trace =On
xdebug.show_exception_trace =On
xdebug.remote_autostart =On
xdebug.remote_enable =On
xdebug.profiler_enable=on
xdebug.trace_output_dir="F:/xdebug" ;xdebug 的数据文件目录
xdebug.profiler_output_dir="F:/xdebug" ;xdebug 的数据文件目录
xdebug.max_nesting_level = 10000 ;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错
xdebug.remote_enable=true ;Xdebug允许远程IDE连接
xdebug.remote_host=127.0.0.1 ;允许连接的zend studio的IP地址
xdebug.remote_port=9000 ;反向连接zend studio使用的端口
xdebug.remote_handler=dbgp