Zend Studio下载地址: http://pan.baidu.com/s/1o6BjvAEphp
XAMPP 下载地址: http://pan.baidu.com/s/1ntkNcEXjava
正常安装便可。web
在XAMPP的安装目录下,查找php文件夹,编辑php/php.ini文件。找到[XDebug],并编辑内容以下:apache
[XDebug] zend_extension = "D:\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_port = 9000
这时候重启apache(在XAMPP控制台里就能重启)。而后在浏览器上输入http://localhost/就会进入xampp的欢迎页,在左右菜单中点击phpinfo连接,能搜索到”Xdebug“字眼就算配置成功。以下:浏览器
This program makes use of the Zend Scripting LanguageEngine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans框架
配置指向D:\Zend\workspaces\DefaultWorkspace10目录spa
这两处分别是:debug
需配置让Zend Studio使用Xdebug来调试,而不是默认的Zend Debugger, 在Window-->Preferences -> PHP Debug菜单里进行全局配置。调试
PHP Debugger里一Web要选择Xdebug。code