gpt4 book ai didi

netbeans - xampp 中的 xdebug 不适用于 netbeans

转载 作者:行者123 更新时间:2023-12-03 06:22:16 27 4
gpt4 key购买 nike

我尝试配置 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:

http://localhost/index.php?XDEBUG_SESSION_START=netbeans-xdebug

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

当我单击 NetBeans 中的停止调试按钮时,会出现一个消息框 在几秒钟内未检测到来自 xdebug 的连接 xdebug 未配置或 xdebug 未安装。

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

最佳答案

首先你能在http://localhost/xampp/index.php中看到xdebug吗? ?如果不是,那么您可能没有编辑正确的 php.ini 文件?看起来 XAMPP 正在使用 php.ini 文件:

c:\xampp\apache\bin\php.ini

在该文件中输入 xdebug 的配置,重新启动 Apache,您应该能够连接。

我无需在 Netbeans 中进行任何更改即可使其正常工作。

屏幕截图:http://rudyegenias.wordpress.com/2011/07/03/xampp-xdebug-xdebug-not-showing-in-phpinfo/

关于netbeans - xampp 中的 xdebug 不适用于 netbeans,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6148490/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com