How can I debug PHP errors in CodeIgniter?

Question

Grade: Education Subject: Support
How can I debug PHP errors in CodeIgniter?
Asked by:
42 Viewed 42 Answers

Answer (42)

Best Answer
(349)
Use the Xdebug extension to enable debugging. Check the CodeIgniter error log (usually located in `writable/logs/`) for detailed error messages. Utilize `error_log()` function to write debugging information to a file. Enable error reporting in `application/config/config.php` to display detailed errors on the screen (but be mindful of security).