Netbeans 8.0.2、Codeigniter 2.2.0、XDebug 断点不起作用


Netbeans 8.0.2, Codeigniter 2.2.0, XDebug Breakpoints Not Working

所以我刚刚安装了Netbeans,并打开了一个用Codeigniter编写的现有项目。我似乎无法让调试工具工作。谁能帮我?我花了最后几个小时在网上寻找,找不到任何解决问题的明确资源。我需要能够调试这个项目,但我不明白为什么这不能开箱即用。

我有一个全新的Codeigniter安装,Xampp服务器1.8.3.5,OSX

加载的配置文件:/applications/XAMPP/xamppfiles/etc/php.ini

配置文件php.ini。因此,使用您喜欢的编辑器打开/Applications/XAMPP/etc/php.ini 并将行添加到其底部:

[xdebug]
zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

有关参考,请查看以下内容:http://blog.laaz.org/tech/2010/08/27/xdebug-with-xampp-on-mac-os-x/