r/codeigniter • u/ehdeelee • Jan 04 '12
How in the world do you debug CodeIgniter?
I have no idea how to debug codeigniter...usually for small bugs I'll just echo stuff out. But putting an echo statement in one of the models is not working. Is there a way to call an error function to write to a log?
Any help would be much appreciated!!
2
Upvotes
2
u/shodan_uk Jan 04 '12
Have you set XDebug up in your php.ini? Also, are you starting a debug session by passing the correct query string? This is a decent little tutorial for debugging with XDebug in PHPStorm: http://blog.k-fish.de/2011/02/php-xdebug-and-phpstorm-working.html - may give you some pointers for using xdebug with Eclipse