zendserver 安装 ZendDebugger

网上都找不到支持PHP5.3及以上的Zend Debugger,然后下载了ZendStudio 10.1,发现它内置的PHP 5.3 和 5.4都支持Debugger,

这Debugger就是Zend Debugger

官方是研发了Zend Debugger For PHP 5.3 和 5.4的,只是捆绑ZendStudio发布而已
然后在路径: C:\Program Files (x86)\Zend\Zend Studio 10.1.0\plugins\com.zend.php.debug.debugger.win32.x86_5.3.21.v20130625\resources\php54
 

php.ini中添加

[Zend]
zend_extension = "G:\servers\xampp\php\ext\ZendDebugger.dll"
zend_debugger.allow_hosts=127.0.0.1/32,192.168.3.0/24
zend_debugger.expose_remotely=always
;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =

 

 

如果5.3之上想用zend的话..就使用zenddebug

 配置->php->DISABLED</b> Zend Debugger这个得禁用掉.算是一个bug吧

还有zend opcache要禁用掉

 

在zendserver 6.3,windows中无需任何设置直接可以使用 ,如果不行的话..就重启吧....

 

 

如果需要在控制台里输出的话.需要设置下面两个参数:

查找设置这两个参数:

output_buffering = Off

implicit_flush = On

 

 

linux下手动安装..  http://repos.zend.com/zend-server/6.3/rpm/x86_64/zend-server-php-5.5-common-6.3.0-17.x86_64.rpm  lib里面也有debug.so还有其他很多的东西

Hey,

It works there ! :-)

What to do for ? 
# Download the package « php-5.4-debugger-zend-server-5.6.0-14 »
Form me it's there :
http://repos.zend.com/zend-server/previ ... x86_64.rpm

# Extract ZendDebugger.so
In the archive, it's ./usr/local/zend/lib/debugger/php-5.4.x/ZendDebugger.so

# Copy it somewhere
Why not /usr/lib64/php/modules

# Extract debugger.ini
In the archive, it's ./usr/local/zend/etc/conf.d/debugger.ini

# Copy it into the PHP configuration files directory
For me it's in /etc/php.d/

# Correct the debugger.ini to point to ZendDebugger.so

Modify :
zend_extension_manager.dir.debugger=/usr/local/zend/lib/debugger
To :
zend_extension=/usr/lib64/php/modules/ZendDebugger.so

# Extract dummy.php
In the archive, it's ./var/www/html/dummy.php

# Copy it in the documentroot
Generally ./var/www/html/

I'm pretty sure you have to create symlinks for :
# libssl.so.0.9.8
For me that works :
ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.0.9.8
# libcrypto.so.0.9.8
ln -s /usr/lib64/libcrypt.so /usr/lib64/libcrypto.so.0.9.8   这里没有写错...

To test this installation :
php -i | less

Quit and watch if there is a error message about libssl.so.0.9.8 or libcrypto.so.0.9.8.

Enjoy ! Now, I can install Fedora 17 ;)

Malo

 再贴一份配置...

 

; register the extension to be loaded by Zend Extension Manager
zend_extension=/usr/lib64/php/modules/ZendDebugger.so

 

; Specifies the hosts that are allowed to connect (hostmask list) with Zend Debugger when running a remote debug session with Zend Studio
zend_debugger.allow_hosts=127.0.0.1/32,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12

; Specifies the hosts that are not allowed to connect (hostmask list) with the Zend Debugger when running a remote debug session with Zend Studio
zend_debugger.deny_hosts=

; A list of hosts (hostmask list) that can use the machine on which Zend Server is installed to create a communication tunnel for remote debgging with Zend Studio. This is done to solve firewall connectivity limitations
zend_debugger.allow_tunnel=

; The user ID of the httpd process that runs the Zend Debugger (only for tunneling)
zend_debugger.httpd_uid=-1

; A range of ports that the communication tunnel can use. This defines the minimum value for the range
zend_debugger.tunnel_min_port=1024

; A range of ports that the communication tunnel can use. This defines the maximum value for the range
zend_debugger.tunnel_max_port=65535

; Define which clients know that the Zend Debugger is installed:
; 0 - Never. The presence of the Zend Debugger is not detected by other clients
; 1 - Always. All clients can detect the Zend Debugger
; 2 - Allowed Hosts. Only clients listed in zend_debugger.allow_hosts can detect the Zend Debugger
; Any other value makes the Zend Debugger undetectable (same as "Never")
zend_debugger.expose_remotely=2

; The Debugger's timeout period (in seconds) to wait for a response from the client (Zend Studio) (units: seconds)
zend_debugger.passive_mode_timeout=20

; Enables fast time sampling which is dependent on CPU cycles and frequency, otherwise, the directive uses operating system timing (which may be less accurate)
zend_debugger.use_fast_timestamp=1

; Enable code-coverage feature, should only be true on local debugger
zend_debugger.enable_coverage=0

 

 

 

 

你可能感兴趣的:(debugger)