关于配置zend debugger得问题

LoocalVinci 2008-07-08 08:38:51
我是php的入门级程序员,正在学习phpbb的源代码。但是在如何调试上面遇到了问题。我的server架在Leopard上面,php.ini内容如下:
zend_extension=/usr/lib/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.0/32,192.168.1.0/24,192.168.0.0/24
zend_debugger.allow_tunnel=127.0.0.0/32,192.168.1.0/24,192.168.0.0/24

而且,phpinfo()已经显示出来“Zend Engine 2”的标识了。

然后,我在windows2000虚拟机上安装了ZDE,设置好URL之后,我“Check Debug Server Connection”总是失败。
我server上的两个log文件内容如下:

/var/log/apache2/error_log:
[Tue Jul 08 07:55:12 2008] [error] [client 192.168.0.101] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Jul 08 07:55:13 2008] [error] [client 192.168.0.101] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Jul 08 07:55:13 2008] [error] [client 192.168.0.101] File does not exist: /Library/WebServer/Documents/favicon.ico


/var/log/apache2/access_log:
192.168.0.101 - - [08/Jul/2008:07:55:12 +0800] "GET /?start_debug=1&debug_port=10000&debug_fastfile=1&debug_host=192.168.0.101%2C127.0.0.1&send_sess_end=1&debug_no_cache=1215474911161&debug_stop=1&debug_url=1&debug_new_session=1 HTTP/1.1" 200 49783
192.168.0.101 - - [08/Jul/2008:07:55:12 +0800] "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
192.168.0.101 - - [08/Jul/2008:07:55:12 +0800] "GET /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
192.168.0.101 - - [08/Jul/2008:07:55:12 +0800] "GET /favicon.ico HTTP/1.1" 404 209
192.168.0.101 - - [08/Jul/2008:07:55:13 +0800] "GET /favicon.ico HTTP/1.1" 404 209
192.168.0.101 - - [08/Jul/2008:07:55:13 +0800] "GET /favicon.ico HTTP/1.1" 404 209
192.168.0.101 - Arisloocal Vinci [08/Jul/2008:07:55:33 +0800] "GET /dummy.php?debugger_connect=1 HTTP/1.1" 200 26



请高手指点一下什么是favicon.ico? 我应该如何配置才能使用Zend Debuger?
...全文
926 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
jlzan1314 2008-07-08
  • 打赏
  • 举报
回复
[Zend]
zend_extension_ts="D:\mysoft\Zend\ZendDebugger.dll"
zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.106/24
zend_debugger.expose_remotely=always
我的是这样配置,没有错误啊.
ZendDebugger.dll 要对应php的不同个版本,网上搜索下,很多.
LoocalVinci 2008-07-08
  • 打赏
  • 举报
回复
补充一下:我从download.zend.com中下载了favicon.ico,并将其放到web server的根目录下。再次尝试用ZDE debugger连接服务器的时候,error_log没有新增内容,但是连接还是失败了。Troubleshooting如下,大部分都应该没有问题的。只是被highlight的两个问题不是很确定:
1.我不清楚windows 2000应该如何配置防火墙,或者如何检查一下连接是否真的是被防火墙挡掉的。
2.不太明白Tunneling是做什么的,如何配置?
请高手指点一二。在此先谢过了!

- The address you're trying to connect to may be invalid.
- The Zend Debug Server may not be properly
installed on the server you're connecting to.
You can test this by checking the output of phpinfo()
on your server, and search for 'Zend Debugger'.
If it's not installed, you should install the
Zend Platform on your server.
- The Zend Platform may be configured not to
allow your host to start debug sessions.
You can configure the list of allowed/denied hosts in
the Zend Platform, or in your php.ini file.
- Your machine may be firewalled, and prevent the
Zend Debug Server from connecting to it.
The Zend Debug Server attempts to connect back to your
machine at a specified port (default is 10000, can be
configured in the Preferences Dialog ->Debug Tab).
You may have to open this port in your firewall
to enable remote debugging.

- The address you typed in may not be a valid PHP file.
PHP must be installed on the server, and configured
to handle the specified extension as a PHP file.
- You may be trying to connect through a proxy server.
Try to disable your proxy (entirely, or for the specific
server that you're trying to connect to).
- Possibly, some other type of error may have occurred.
Try to check the end of your server's error log
(typically under /var/log/httpd/error_log in UNIX
systems) for possible error messages.
- The Zend Platform URL defined in the Preferences
is different than the Tunneling Target Host URL defined
in the Tunneling Settings dialog.
fcoolx 2008-07-08
  • 打赏
  • 举报
回复
php 5.2 有问题,不兼容
我用php 5.0就可以
LoocalVinci 2008-07-08
  • 打赏
  • 举报
回复
我也有配置php.ini,ZendDebugger的版本应该是没有问题,5.2.x,和phpinfo相吻合。但是连接却总是失败。

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧