Zend Studio下的PHP代码调试问题:Zend Studio无法调试php代码安装Zend Debugger下载到http://downloads./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.
任务:XDebug安装
到http:///download.php选择自己需要的xdebug版本。 下载并解压到自己需要的位置。 在php.ini中加入
如果不行改用
然后重启apache通过phpinfo()输出并查找xdebug是否被成功加载。 问题:XDebug无法进入断点在php.ini中加入
最后,记得重启apache |
|