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

时间:2023-01-18 09:08:44

So I have just installed Netbeans and I have opened an existing project that has been written with Codeigniter. I cant seem to get the debug tool working. Can anyone help me out? Ive spent the last couple of hours looking online and cant find any definitive resource that solves the problem. I need to be able to debug this project and I can't understand why this doesn't just work out of the box.

所以我刚刚安装了Netbeans,并且我已经打开了一个用Codeigniter编写的现有项目。我似乎无法使调试工具正常工作。谁能帮我吗?我花了最近几个小时在线查找,无法找到解决问题的任何权威资源。我需要能够调试这个项目,我无法理解为什么这不仅仅是开箱即用。

Ive a fresh Codeigniter install, Xampp server 1.8.3.5, OSX

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

Loaded Configuration File: /Applications/XAMPP/xamppfiles/etc/php.ini

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

1 个解决方案

#1


1  

To configure php.ini file. So open /Applications/XAMPP/etc/php.ini with your favorite editor and add the lines to the bottom of it:

配置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

For the reference check this out: http://blog.laaz.org/tech/2010/08/27/xdebug-with-xampp-on-mac-os-x/

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

#1


1  

To configure php.ini file. So open /Applications/XAMPP/etc/php.ini with your favorite editor and add the lines to the bottom of it:

配置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

For the reference check this out: http://blog.laaz.org/tech/2010/08/27/xdebug-with-xampp-on-mac-os-x/

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