按照http://xdebug.org/find-binary.php的配置方式。输出如下信息:Tailored Installation InstructionsSummaryXdebug 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 versionBut 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配置: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"
实在不知道哪里出了错,各位,帮忙看下哦!谢谢啦

解决方案 »

  1.   

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

  2.   

    你这个xdebug.remote_port不是默认的,IDE那边改成一样的没?
      

  3.   

    这个是我的 你试试吧
    [XDebug]
    zend_extension = "D:\xampp\php\ext\php_xdebug.dll"xdebug.profiler_append = 0xdebug.profiler_enable = 1xdebug.profiler_enable_trigger = 0xdebug.profiler_output_dir = "D:\xampp\tmp"xdebug.profiler_output_name = "xdebug_profile.%R::%u"xdebug.remote_enable = truexdebug.remote_handler = "dbgp"xdebug.remote_host = "localhost"xdebug.remote_port = 9000xdebug.trace_output_dir = "D:\xampp\tmp"
      

  4.   

    我已经解决了,经发现,是php.ini配置文件xdebug.remote_port端口和zend studio里面的端口不一致导致的。现在好了。谢谢大家!