CodeIgniter Forums
Debugging with XDebug 2.2.5 and Codeignitor 3 in Eclipse Kepler with XAMPP on Mac OS - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Debugging with XDebug 2.2.5 and Codeignitor 3 in Eclipse Kepler with XAMPP on Mac OS (/showthread.php?tid=168)



Debugging with XDebug 2.2.5 and Codeignitor 3 in Eclipse Kepler with XAMPP on Mac OS - pulse - 11-07-2014

Hello All,

i spent some hours with the installation of XDebug. Its now installed since the command php -v response with the correct version number. OK, so far so good. I configured eclipse debug configuration(Server Setting , CLI Settings), so xdebug is recognized by eclipse.

These are my xdebug settings in my php.in:
[xdebug]
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

As you can see i use port 9000. My Project is a Codeigniter php project, so in eclipse the project is called PHPTest but all the files are in Applications/XAMPP/htdocs/Codeigniter.So i gave in the debug configuration as File PHPTest/index.php and as URL i gave the input http://localhost/Codeigniter/index.php.
Now: each time i start the debugger, it moves forward to 57% and than it hangs. I googled a lot and some people have written that the reason for that might be the port number. So i tried some other port numbers(9001,9002,...). And yes.. i changed it in the debugger settings and in the php.in.Now i think the reason could be codeigniter itself. If anyone has experience with that kind of problem, please help...thx


RE: Debugging with XDebug 2.2.5 and Codeignitor 3 in Eclipse Kepler with XAMPP on Mac OS - jose - 02-19-2015

I've learnt that there's an incompatibility between Xdebug and Mac's Apache server.
It crashes apache when debugging some php reflection functions like call_user_func and call_user_func_array, which are used in Codeigniter to load the constructors.


RE: Debugging with XDebug 2.2.5 and Codeignitor 3 in Eclipse Kepler with XAMPP on Mac OS - RobertSF - 02-19-2015

You can verify what jose is saying by trying to debug a simple PHP script completely independent from Codeigniter. Just set a breakpoint within it and see if it stops.


RE: Debugging with XDebug 2.2.5 and Codeignitor 3 in Eclipse Kepler with XAMPP on Mac OS - sv3tli0 - 02-19-2015

Xampp on Mac OS ? ... this is the problem if you ask me Smile
Just joking Smile

If its new server installation on your mac I can suggest to you to remove it.
And make a clean server setup using either Homebrew or Macports ( apache + php + DB(mysql) + any php modules and etc..)..

With both I have used xdebug in different projects I haven't any problem with it..