配置Xdebug+SublimeText

Xdebug用来调试php代码

  • 1 下载php xdebug dll,配置路径
    首先创建一个php文件test.php
    文件内容:

phpinfo();
?>

test.php文件拷贝到Web服务路径
比如我的Web路径是:

配置Xdebug+SublimeText_第1张图片
image.png

然后打开浏览器输入url
http://localhost/test.php
(注意:你的web服务必须先启动)
此时浏览器会显示php信息

配置Xdebug+SublimeText_第2张图片
image.png

将页面内容拷贝到
https://xdebug.org/wizard.php页面的输入框,点击Analyse my phpinfo() output
配置Xdebug+SublimeText_第3张图片
image.png

按照页面说明,将php xdebug dll下载放到php ext目录,设置php.ini ,重启服务,


配置Xdebug+SublimeText_第4张图片
image.png

成功配置后再打开http://localhost/test.php,会看到多了Xdebug一栏

image.png

  • 2 接着下载Sublime相关插件,参考下文步骤http://blog.csdn.net/liuzhushiqiang/article/details/14170483

你可能感兴趣的:(配置Xdebug+SublimeText)