无废话安装 Zend Debugger(2010-09-06 更新).

作者:Hily 原始链接:http://hily.me/blog/2010/07/zenddebugger-quick-installation/
版权声明:可以转载,转载时务必以超链接形式标明文章原始出处作者信息版权声明

下载Zend Debugger,请根据各自版本选择安装包的版本:
x86_64:

http://downloads.zend.com/studio_debugger/20100729/ZendDebugger-20100729-linux-glibc23-x86_64.tar.gz

i386:

http://downloads.zend.com/studio_debugger/20100729/ZendDebugger-20100729-linux-glibc23-i386.tar.gz

解压后将相应PHP版本目录下的ZendDebugger.so文件置于PHP扩展目录下,如:

/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/Zen
dDebugger.so

php.ini 尾部加上:

zend_extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/Zen
dDebugger.so

考虑到安全,你还可以在php.ini尾部加上:

zend_debugger.allow_hosts=192.168.16.112
zend_debugger.expose_remotely=always

来限制某些IP的访问。

测试:

# php -m
[PHP Modules]
Core
ctype
date
dba
dom
ereg
fileinfo
filter
gd
hash
iconv
json
libxml
mbstring
mcrypt
memcached
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
rabbit
redis
Reflection
session
SimpleXML
soap
sockets
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
Zend Debugger
zlib

[Zend Modules]
Zend Debugger

注意一定要和php版本对应上,否则可能出现以下提示:

gentoo # php -m
Zend Debugger requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Debugger.

[PHP Modules]
Core
ctype
date
...

-- EOF --

不是吧,只有一条评论?! »

  1. 非主流 说道:

    2010年09月02日 14:04

    确实废话不多啊

发表一下您的高见

If you have any question, or for the language problem, please fell free to leave a comment or just contact me with email: hilyjiang [At] Gmail.