xampp中的xdebug不';我不能在netbeans上工作

xampp中的xdebug不';我不能在netbeans上工作,netbeans,xampp,xdebug,Netbeans,Xampp,Xdebug,我尝试配置xdebug,但在我使用时不起作用: XAMPP 1.7.4 , Netbeans 7.0 Xdebug installed: 2.1.0rc1 Server API: Apache 2.0 Handler Windows: yes - Compiler: MS VC6 - Architecture: x86 Zend Server: no PHP Version: 5.3.5 Zend API nr: 220090626 PHP API nr: 20090626 Deb

我尝试配置xdebug,但在我使用时不起作用:

XAMPP 1.7.4  , Netbeans 7.0
Xdebug installed: 2.1.0rc1 
Server API: Apache 2.0 Handler
Windows: yes - Compiler: MS VC6 - Architecture: x86 
Zend Server: no 
PHP Version: 5.3.5 
Zend API nr: 220090626 
PHP API nr: 20090626 
Debug Build: no 
Thread Safe Build: yes 
Configuration File Path: C:\WINDOWS 
Configuration File: C:\xampp\php\php.ini
Extensions directory: C:\xampp\php\ext 
php.ini

zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.extended_info = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = "DBGp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
现在的问题是:

菜单“附加调试器”仍处于禁用或灰显状态

当我尝试调试时,断点永远不会被击中。脚本的运行方式与普通脚本类似

以下是单击调试主项目时得到的URL:

关闭浏览器时,调试器不会停止。它显示等待连接的
状态

当我单击NetBeans中的停止调试按钮时,会显示一个消息框
在几秒钟内检测到没有与xdebug的连接
xdebug未配置或xdebug未安装


请指导我解决上述问题并调试项目

首先,您能在中看到xdebug吗?如果不是,那么您可能没有编辑正确的php.ini文件?似乎XAMPP正在以下位置使用php.ini文件:

c:\xampp\apache\bin\php.ini
在该文件中输入xdebug的配置,重新启动Apache,您应该能够连接

我不需要改变Netbeans中的任何东西来让它工作


此处的屏幕截图:

?要在Netbeans和XAMPP上使用XDebug

  • 用于检查系统并下载最佳xdebug.dll

  • 将该.dll放在C:/xampp/php/ext中

  • 编辑C:/xampp/php/php.ini添加以下内容

[XDebug]
zend_extension=C:\xampp\php\ext\php_xdebug-2.2.3-5.5-vc11.dll
xdebug.remote\u enable=on
xdebug.remote_handler=dbgp
xdebug.remote\u host=localhost
xdebug.remote_port=9000
xdebug.show\u local\u vars=on
xdebug.output_buffering=off

  • 重新启动Apache web服务器
我在很多其他环境下都很挣扎,但这是最好的选择