您的位置:首页 > 编程语言 > PHP开发

ZendStudio调试php脚本环境安装布置(备忘)

2015-02-03 23:29 447 查看
1. 安装zendstudio

2. 安装xampp(绿色版的xampp需要先运行文件夹内的xampp_setup.bat)

3. 配置xampp/php/php.ini, 打开xdebug插件, 按如下配置

<span style="font-size:14px;">[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "D:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
;xdebug.trace_output_dir = "D:\xampp\tmp"</span>

4.配置zendstudio中php调试部分, 添加一个GenericServer(调试器要选xdebug)





5.选中项目,设置properties->php->debug, 将其中的server设置为刚才添加的server即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: