无法使用 Xdebug 使用 Netbeans 6.8 IDE 调试 Code Igniter App [英] Can't use Xdebug to debug Code Igniter App using Netbeans 6.8 IDE

查看:24
本文介绍了无法使用 Xdebug 使用 Netbeans 6.8 IDE 调试 Code Igniter App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能使用 Xdebug 调试使用 Code Igniter 构建的应用程序,但我可以使用它来调试任何其他 PHP 文件,只要它不使用与 Code Igniter 相同的结构来解决 URL.

I can't use Xdebug to debug an application built with Code Igniter, but I can use it to debug any other PHP file as long it doesn't use the same Structure for url solving that Code Igniter uses.

含义:在一个没有 Code Igniter 的简单 PHP 文件中,当我使用 NetBeans 调试时,浏览器会转到:http://localhost:86/index.php?XDEBUG_SESSION_START=netbeans-xdebug

Meaning: In a simple PHP file with no Code Igniter, when I use NetBeans debugging the browser goes to: http://localhost:86/index.php?XDEBUG_SESSION_START=netbeans-xdebug

由于没有使用 Code Igniter 或其他框架,NetBeans 可以实际调试 PHP.

Since no Code Igniter or other framework as been used, NetBeans can actually debug the PHP.

但是当在 NetBeans 中点击调试按钮时使用 Code Igniter 时,浏览器会转到:

But when using Code Igniter when hit the debug button in NetBeans, and the browser goes to:

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

所有发生在 Code Igniter 中的根 index.php 没有运气,而是得到标准的 CodeIgniter 404 Page not Found".

the root index.php where all happens in Code Igniter no luck, instead I get the standard CodeIgniter "404 Page not Found".

我的猜测是,由于 Code Igniter 用于 url 解析的结构 Segments,xdebug 无法调试任何东西.

My guess is that due to the structure Segments that Code Igniter uses for url solving, xdebug can't debug nothing.

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

Example: example.com/class/function/ID

如何使 xdebug 与 Code Igniter 一起工作?

How can I make xdebug work with Code Igniter?

使用:

  • Windows 7 32 位.
  • XAMPP 版本 1.7.3.
  • PHP 5.3.1
  • Xdebug v2.0.6-dev

推荐答案

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

After a while of research and testing i came across this article.

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

它所说和显示的位置以及在 xDebug 中使用 xdebug Firefox 插件您的本地服务器安装和 NetBeans 使您能够调试 Code Igniter 项目,而无需在 Code Igniter 配置设置中打开查询字符串.

where it says and shows and to use the xdebug Firefox plugin with xDebug in your local server installation and NetBeans enabling you to debug your Code Igniter project without the need to turn on Query Strings in your Code Igniter config settings.

实际上真的很容易使用.希望对遇到同样问题的其他人有所帮助.

Really easy to use actually. Hope that helped others that were having the same problem.

这篇关于无法使用 Xdebug 使用 Netbeans 6.8 IDE 调试 Code Igniter App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆