我无法让 xdebug 工作


I can't get xdebug working

我的系统:

-windows 7 
- php 5.5.9
- stack:  xampp(32bit)

xdebug版本:PHP 5.5 VC9(32位)从 http://xdebug.org/download.php

和我的PHP.ini:

[XDebug]
zend_extension="php_xdebug-2.3.1-5.5-vc9-nts.dll"
xdebug.remote_handler = dbgp
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_host = 127.0.0.1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:'xampp'tmp"

我的 PHP 安装位于: C:''xampp''php''ext

我有一个非常相似的设置,这是对我有用的:

[XDebug]
zend_extension = "C:'xampp'php'ext'php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "C:'xampp'tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_mode = "req"
xdebug.trace_output_dir = "C:'xampp'tmp"
xdebug.remote_log = "C:'xampp'php'logs'xdebug_log"
xdebug.max_nesting_level = 1000

在那之后,我也不得不挣扎 2 天才能正常工作......我的配置是 -

[xdebug]
zend_extension = C:'Program Files'PHP54'ext'php_xdebug-2.3.1-5.4-vc9.dll
xdebug.idekey = netbeans-xdebug
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000