代码之家  ›  专栏  ›  技术社区  ›  Fábio Antunes

无法使用Xdebug使用Netbeans 6.8 IDE调试代码点火器应用程序

  •  7
  • Fábio Antunes  · 技术社区  · 15 年前

    我不能使用Xdebug调试使用CodeIgniter构建的应用程序,但我可以使用它调试任何其他PHP文件,只要它不使用CodeIgniter使用的url解决结构。

    意思是: 在一个没有代码点火器的简单PHP文件中,当我使用NetBeans调试时,浏览器会转到: http://localhost:86/index.php?XDEBUG_SESSION_START=netbeans-xdebug

    由于没有使用代码点火器或其他框架,NetBeans实际上可以调试PHP。


    但当在NetBeans中点击调试按钮时,使用代码点火器时,浏览器会转到:

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

    在root index.php中,所有的一切都发生在CodeIgniter中,没有运气,相反,我得到了标准的CodeIgniter“404页面未找到”。

    我的猜测是,由于CodeIgniter用于url解析的结构段,xdebug无法调试任何东西。

    示例:Example.com/class/function/ID

    如何使xdebug与CodeIgniter一起工作?

    使用:

    • Windows 7 32位。
    • XAMPP版本1.7.3。
    • PHP 5.3.1
    • Xdebug v2.0.6-dev
    3 回复  |  直到 13 年前
        1
  •  4
  •   Bill McEachran    13 年前

    我找不到上面链接的文章。。。但是设法将各种旧帖子和其他文章拼凑在一起,提出了一个codeigniter/netbeans/xdebug解决方案 http://wjmceachran.com/articles/70-codeigniter-and-netbeans.html

        2
  •  3
  •   Community CDub    8 年前

    看起来是同一个问题 solved here . 根据该问题的公认答案,确保配置文件中设置了以下内容:

    $config['uri_protocol'] = "PATH_INFO";
    $config['enable_query_strings'] = TRUE;
    
        3
  •  2
  •   Fábio Antunes    15 年前

    经过一段时间的研究和测试,我发现了这篇文章。

    http://brettic.us/2009/11/07/developing-php-on-a-mac-with-netbeans/

    它在哪里说,显示和使用 xdebug Firefox plugin

    实际上很容易使用。希望这能帮助其他有同样问题的人。