win7+wamp+xdebug+zend studio9.0.3配置说明
来源:互联网 发布:mysql create index 编辑:程序博客网 时间:2024/06/06 13:12
Win7+zend studio 9.0.3 +WampServer2.2 +php_xdebug-2.2.0-5.3-vc9 debug配置 有图有真相
折腾了一下午zend studio 9.0.3 +WampServer2.2+ZendDebuger的debug配置,
官方文档 baidu google 全用上了 反复折腾,也没搞定zend debuger,估计是 5_3_x_nts_comp的ZendDebugger 不支持WampServer2.2自带的php5.3.13.
希望成功搞定的朋友 指教下!
最后决定使用WampServer2.2自带的xdebug 调试PHP代码。
配置步骤如下:
一、wamp端 xdebug 配置
1.找到wamp的apache安装目录
我的安装目:
C:\wamp\bin\apache\apache2.2.22\bin\
2.打开php.in文件,找到“; XDEBUG Extension”所在位置
原样如下:
; XDEBUG Extension
zend_extension = "c:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
修改XDEBUG后的信息如下:
; XDEBUG Extension
zend_extension = "c:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"
[xdebug]
xdebug.remote_enable = on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
简单说明如下:
允许远程调试:xdebug.remote_enable = on
默认调试协议:xdebug.remote_handler=dbgp
远程服务器IP地址(localhost指的是本机):xdebug.remote_host=localhost
默认端口:xdebug.remote_port=9000
至此,wamp端 xdebug 配置完成。
二、zendstudio端xdebug 配置
1.打开zendstudio9.0.3,依次选择 windows->preferences->PHP->PHP Executables Add 新的PHP Executables
如下图所示:
配置debug如下图所示:PS:http://localhost:8080 是我本地的apache server 运行地址,你可以改成你自己的server地址。
至此,zendstudio端,xdebug的配置也完成了。
三、测试配置成果
在zendstudio中新建php 项目,建议content选择basic类型的,之后一路next就行了。
步骤如下图所示:
打开创建好的index.php,加入如下测试代码,保存文件。
<?php
echo
"Hello World"
;
echo
"This spans multiple lines. The newlines will be output as well"
;
echo
"This spans\nmultiple lines. The newlines will be\noutput as well."
;
echo
"Escaping characters is done \"Like this\"."
;
?>
下面开始调试:
第一步,右键单击你刚刚创建好的工程,选择debug as,如下图所示:
出现如下图所示的效果,说明你的xdebug 配置成功。
想到哪里写到哪里,有什么看不懂的地方欢迎来电来函.呵呵
- win7+wamp+xdebug+zend studio9.0.3配置说明
- win7+wamp+xdebug+zend studi…
- Zend Studio9.02 字体显示,WIN7系统
- zend studio9.0.3破解方法
- xdebug,apc,eAccelerator,zend的配置说明
- WAMP+ZEND 安装说明
- WAMP配置扩展Xdebug
- zend studio配置xdebug
- Zend Studio9.0.2 注册码
- zend studio9.04安装
- wamp server 如何配置 xdebug
- zend studio 9 wamp 配置
- WINDOWS + WAMP + Zend Framework 配置
- Win7+wamp+oracle 配置
- eclispe for php wamp xdebug 配置
- 成功配置wamp+netbeans+xdebug黄金组合
- eclipse pdt/wamp/xdebug调试环境配置
- 成功配置wamp+netbeans+xdebug黄金组合
- 内存管理内幕
- 初步了解jackson,简单的使用jackson的annotation
- 数据结构 - 归并排序
- Windows Server 2008 安装与配置Subversion(SVN)服务器
- C++中四种类型转换以及const_cast是否能改变常量的问题
- win7+wamp+xdebug+zend studio9.0.3配置说明
- 黑马程序员—java面试题之银行业务调度系统
- ANDROID TabHost 切换时怎么及时刷新本ACTIVITY
- iOS 6.1 to iOS 7.0 API Differences
- iOS下完美编译ffmpeg+x264,支持armv7, armv7s, 模拟器 (验证不通过,估计和ffmpeg版本有关)
- Linux 2.6内核中新的锁机制--RCU
- 修改 cassandra data commitlog cache路径,启动报错
- C++的引用与const指针的关系以及各种传递方式
- C#调用C++类的导出函数