Netbeans + Xdebug + php无法正常工作

Yar*_*gon 6 php netbeans xdebug

我的netbeans使用xdebug不能使用断点,我的配置看起来是正确的,所以我第一次配置我第一次停止调试从那时起从未工作,有人有这个问题吗?我的netbeans的版本是6.8,php的版本是2.5.2.

我的php.ini:

zend_extension_ts = d:\wamp\bin\php\php5.2.5\ext\php_xdebug-2.0.2-5.2.5.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug
xdebug.profiler_enable=1
Run Code Online (Sandbox Code Playgroud)

Ray*_*Ray 8

在我的情况下,这行必须包含在php.ini中:

xdebug.remote_autostart=on
Run Code Online (Sandbox Code Playgroud)

以下是XDebug的配置部分:

[xdebug]
xdebug.remote_enable = on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
xdebug.remote_autostart=on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"
Run Code Online (Sandbox Code Playgroud)


tho*_*ter 1

  • 检查您的 Xdebug 版本是否适合您的 PHP 版本(包括线程安全/非线程安全和 64 位/32 位)。
  • 在一些较新版本的 PHP 中,无论您是否有 TS 版本的 Xdebug,都需要使用 zend_extension,而不是 zend_extension_ts。