Zend Studio无法调试php代码转自(http://www.cnblogs.com/yaksea/archive/2011/08/26/2154154.html)
2012-03-27 15:08
876 查看
安装Zend Debugger
下载
到http://downloads.zend.com/pdt/server-debugger下载最新的debugger下载后将zip解压缩。得到一个目录:有x_x_x_comp和x_x_x_nts_comp,x指版本号,nts指non thread safe,使用phpinfo查看你的php安装版本和thread safe属性,
配置
1、请将ZendDebugger.dll复制到您的php安装目录下,比如:你的php根目录/ext/2、然后将下面的4行内容加到您的php.ini:
[Zend]
zend_extension_ts=C:/wamp/bin/php/php5.2.9-2/ZendDebugger.dll
;此处ts代理线程安全
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
其中,127.0.0.1是远程调试的文件所在机器的IP;我是本地web调试
3、将dummy.php复制到apache的document root目录。
4、重启apache。
5.到Zend Studio的Tools->preferences->debug下核对一下设置是正确的
6.测试Debugger是否成功
问题:Test Debugger报错
“A timeout occurred when the debug server attempter to connect to the following client hosts/IPS”所以注意了:如果你的php版本是5.3以上,且是thread safe的,那么不要浪费你的时间做尝试,建议你直接改用XDebug吧。以下官方给出的解释。
The Debugger we provide supports only the non-thread-safe architecture, that is why it does not load in your configuration.
Zend
stopped supporting the thread safe architecture when Microsoft also
decided to implement its PHP engine with the fast-cgi architecture which
means non-thread-safe.
Best regards,
Massi.
任务:XDebug安装
到http://xdebug.org/download.php选择自己需要的xdebug版本。下载并解压到自己需要的位置。
在php.ini中加入
zend_extension_ts="你的php根目录/ext/php_xdebug.dll" |
zend_extension="你的php根目录/ext/php_xdebug.dll" |
问题:XDebug无法进入断点
在php.ini中加入;开启自动跟踪 |
xdebug.auto_trace = On |
;开启异常跟踪 |
xdebug.show_exception_trace = On |
;开启远程调试自动启动 |
xdebug.remote_autostart = On |
;开启远程调试 |
xdebug.remote_enable = On |
;收集变量 |
xdebug.collect_vars = On |
;收集返回值 |
xdebug.collect_return = On |
;收集参数 |
xdebug.collect_params = On |
xdebug.trace_output_dir="e:/xampp/temp" |
xdebug.profiler_enable=On |
xdebug.profiler_output_dir=" e:/xampp/temp" |
xdebug.remote_host=localhost |
xdebug.remote_port=9000 |
xdebug.remote_handler=dbgp |
相关文章推荐
- xampp环境下,配置Zend Studio调试php(XDebug) 转摘:http://www.cnblogs.com/tuyithief/archive/2011/06/02/2068431.html
- PHP 杂谈《重构-改善既有代码的设计》之一 重新组织你的函数【链接:http://www.cnblogs.com/baochuan/archive/2012/03/31/2425441.html】
- PHP 杂谈《重构-改善既有代码的设计》之二 对象之间搬移特性【链接:http://www.cnblogs.com/baochuan/archive/2012/04/01/2427199.html】
- PHP 杂谈《重构-改善既有代码的设计》之四 简化条件表达式【链接:http://www.cnblogs.com/baochuan/archive/2012/04/06/2432478.html】
- PHP 杂谈《重构-改善既有代码的设计》之五 简化函数调用【链接:http://www.cnblogs.com/baochuan/archive/2012/04/10/2437688.html】
- 解决:无法连接到 WMI 提供程序。您没有权限或者该服务器无法访问。 (转帖:http://www.cnblogs.com/furenjun/archive/2011/09/01/2161873.html)
- 只需一行代码就能让IE 6崩溃http://www.cnblogs.com/meil/archive/2007/08/07/846758.html
- PHP中spl_autoload_register函数的用法 ---转载自http://www.cnblogs.com/myluke/archive/2011/06/25/2090119.html
- vs远程调试 转http://www.cnblogs.com/magicchaiy/archive/2013/05/28/3088274.html
- Debian(Linux)+XAMPP(LAMPP)+Zend Studio + PHP +XDebug 完整的开发环境配置方法。 转摘:http://www.cnblogs.com/kungfupanda/archive/2010/11/25/1887812.html
- JS间隔性滚动代码[修正增加了部分功能] 【转:http://www.cnblogs.com/robot/archive/2008/04/09/1144568.html】
- Silverlight中实现带CheckBox的多选下拉框--来源(附有实例代码):http://www.cnblogs.com/shiaupo/archive/2011/06/04/2072668.html
- JS间隔性滚动代码[修正增加了部分功能] 【转:http://www.cnblogs.com/robot/archive/2008/04/09/1144568.html】
- php 程序员,转载自: http://www.cnblogs.com/chinacode/archive/2010/09/10/1823342.html
- 调试mvc 源码【转:http://www.cnblogs.com/wucj/archive/2013/06/09/3128698.html】
- WindowsPhone问题笔记-- 正确选择build action 解决媒体资源无法读取问题 转:http://www.cnblogs.com/qinxg/archive/2012/07/17/2594503.html
- HTML实体符号代码速查表__http://www.cnblogs.com/kiter/archive/2011/08/05/2128309.html
- .net反射(原:http://www.cnblogs.com/knowledgesea/archive/2013/03/02/2935920.html)
- Visual Studio2010+SOS.dll调试入门 摘自 http://www.cnblogs.com/luminji/archive/2011/01/27/1946217.html
- python 的日志logging模块学习 (转自:http://www.cnblogs.com/dkblog/archive/2011/08/26/2155018.html)