Windows7下Apache2.2+PHP5.2.17+Zend Studio 8.0.1 配置DEBUG调试环境
为了改造WordPress需要先看源码,但是没有DEBUG环境也无法查看源码!
于是乎,开始在网上找搭建DEBUG环境,由于第一次接触PHP,使用的编译器又是Zend Studio 9.0.2,在网上根本没有基于Zend Studio 9的Aapche2+PHP5的Debug环境搭建!摸索了1个礼拜,最终还是没有搭建好,时间原因只好退一步,改为使用Zend Studio 8.0.1,当然更大一部分原因是发现PHP官网上有这么一句话:在这个http://www.php.net/downloads.php下载页面有个链接,打开以后选择Windows Binaries(基于Windows的二进制包)
Windows Binaries For the Windows binaries and installer, see http://windows.php.net/download/.
Which version do I choose?If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP
zend_extension_ts="d:/sotf/ZendDebugger-20110410-cygwin_nt-i386/5_2_x_comp/ZendDebugger.dll"zend_debugger.allow_hosts="127.0.0.1"
<html><body><h1><?phpecho "坑爹的DEBUG!";phpinfo();?></h1></body></html>
Zend DebuggerPassive Mode Timeout 20 seconds Directive Local Value Master Value zend_debugger.allow_hosts 127.0.0.1 127.0.0.1 zend_debugger.allow_tunnel no value no value zend_debugger.deny_hosts no value no value zend_debugger.expose_remotely never never zend_debugger.httpd_uid -1 -1 zend_debugger.max_msg_size 2097152 2097152 zend_debugger.tunnel_max_port 65535 65535 zend_debugger.tunnel_min_port 1024 1024