【问题标题】:Debugging CakePHP 2.4 app with xdebug and netbeans does not work使用 xdebug 和 netbeans 调试 CakePHP 2.4 应用程序不起作用
【发布时间】:2014-08-27 15:19:39
【问题描述】:

我正在尝试调试 CakePHP 2.4 应用程序。我的设置是一个带有 PHP 5.3.13 和 xDebug 2.2.5 的 WAMP 服务器。我正在使用 NetBeans 8.0

这是我的 php.ini 设置:

    zend_extension = c:\wamp\bin\php\php5.3.13\ext\php_xdebug-2.2.5-5.3-vc9.dll

    [xdebug]
    xdebug.remote_enable = on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.idekey="netbeans-xdebug"
    xdebug.remote_autostart=on
    xdebug.profiler_enable = on
    xdebug.profiler_enable_trigger = on

当我在 NetBeans 上启动调试会话时,状态栏中会显示 netbeans-xdebug running。还有我的phpinfo() 显示 xDebug 已加载,但我尝试调试的网站是空白的,加载需要永远没有结果。

我正在加载 index.php,它被 xDebug 重写为:

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

我认为这与 XDEBUG_SESSION_START=netbeans-xdebug 部分有关。 通常我会使用:

    http://localhost/webakis3dev/index.php to access index.php.

【问题讨论】:

  • 不需要帮助,我发现 NetBeans 出了什么问题,我需要在每个请求上按 continue(F5) 才能加载它。

标签: php cakephp netbeans xdebug


【解决方案1】:

不需要帮助,我发现 NetBeans 出了什么问题,我需要在每个请求上按 continue(F5) 才能加载它。

为了避免这种行为,我需要在 NetBeans 的调试选项窗口中禁用“在第一行停止”复选框

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-04
    • 1970-01-01
    • 2012-04-06
    • 1970-01-01
    • 2010-10-16
    • 2020-11-21
    • 2013-06-17
    相关资源
    最近更新 更多