+ -
当前位置:首页 → 问答吧 → zend studio9+xdebug配置ok,依然调试不了

zend studio9+xdebug配置ok,依然调试不了

时间:2011-12-21

来源:互联网

按照http://xdebug.org/find-binary.php的配置方式。输出如下信息:
HTML code

Tailored Installation Instructions

Summary

Xdebug installed: 2.1.2
Server API: Apache 2.0 Handler
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.3.8
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: D:\studySoft\PHP\php.ini
Extensions directory: D:\studySoft\PHP\ext
You're already running the latest Xdebug version

But here are the instructions anyway:

Download php_xdebug-2.1.2-5.3-vc9.dll
Move the downloaded file to D:\studySoft\PHP\ext
Update D:\studySoft\PHP\php.ini and change the line
zend_extension = D:\studySoft\PHP\ext\php_xdebug-2.1.2-5.3-vc9.dll
Restart the webserver



成功配置了。zend studio的debug模式也选择的是xdebug。但是依然无法调试。
php.ini有关xdebug配置:
XML code

zend_extension = D:\studySoft\PHP\ext\php_xdebug-2.1.2-5.3-vc9.dll
xdebug.default_enable=0
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=29001
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart =false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.max_nesting_level = 10000
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir= "D:\studySoft\PHP\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="D:\studySoft\PHP\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"



实在不知道哪里出了错,各位,帮忙看下哦!谢谢啦

作者: lgm277531070   发布时间: 2011-12-21

没有弄过这个,向来调试都是不断的print_r,die()

作者: TottyAndBaty   发布时间: 2011-12-22