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

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

问题描述

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



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



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






但是当在NetBeans中打开调试按钮时使用代码Igniter时,浏览器转到:



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



根索引.php其中所有发生在代码Igniter没有运气,而是我获得标准的CodeIgniter404页面找不到。



我的猜测是,由于结构代码Igniter用于网址解析的段,xdebug不能调试任何内容。


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


如何使xdebug与代码Igniter配合使用?






  • Windows 7 32位元。

  • XAMPP版本1.7.3。

  • PHP 5.3.1

  • Xdebug v2.0.6-dev




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

其中显示并使用 xdebug在本地服务器安装中使用xDebug的Firefox插件和NetBeans使您可以调试您的代码Igniter项目,而无需打开查询字符串在您的代码Igniter配置设置。



真的很容易使用。希望帮助别人有同样的问题。


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.

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

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


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

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

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

Example: example.com/class/function/ID

How can I make xdebug work with Code Igniter?

Using:

  • Windows 7 32 bits.
  • XAMPP version 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/

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的代码Igniter App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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