到http://downloads.zend.com/pdt/server-debugger下载最新的debuggerphp
1、请将ZendDebugger.dll复制到您的php安装目录下,好比:你的php根目录/ext/web
2、而后将下面的4行内容加到您的php.ini:apache
[Zend]安全
zend_extension_ts=C:/wamp/bin/php/php5.2.9-2/ZendDebugger.dllide
;此处ts代理线程安全测试
zend_debugger.allow_hosts=127.0.0.1spa
zend_debugger.expose_remotely=always线程
其中,127.0.0.1是远程调试的文件所在机器的IP;我是本地web调试debug
3、将dummy.php复制到apache的document root目录。代理
4、重启apache。
5.到Zend Studio的Tools->preferences->debug下核对一下设置是正确的
6.测试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.
Zend stopped supporting the thread safe architecture when Microsoft also decided to implement its PHP engine with the fast-cgi architecture which means non-thread-safe.
Best regards,
Massi.
到http://xdebug.org/download.php选择本身须要的xdebug版本。
下载并解压到本身须要的位置。
在php.ini中加入
zend_extension_ts="你的php根目录/ext/php_xdebug.dll" |
若是不行改用
zend_extension="你的php根目录/ext/php_xdebug.dll" |
而后重启apache经过phpinfo()输出并查找xdebug是否被成功加载。
在php.ini中加入
;开启自动跟踪 |
|
xdebug.auto_trace = On |
;开启异常跟踪 |
|
xdebug.show_exception_trace = On |
;开启远程调试自动启动 |
|
xdebug.remote_autostart = On |
;开启远程调试 |
|
xdebug.remote_enable = On |
;收集变量 |
|
xdebug.collect_vars = On |
;收集返回值 |
|
xdebug.collect_return = On |
;收集参数 |
|
xdebug.collect_params = On |
xdebug.trace_output_dir="e:/xampp/temp" |
|
xdebug.profiler_enable=On |
xdebug.profiler_output_dir=" e:/xampp/temp" |
|
xdebug.remote_host=localhost |
|
xdebug.remote_port=9000 |
xdebug.remote_handler=dbgp |