I don’t see any easy way to debug or see php error log for Joomla, If I am not wrong. While working with WordPress I just put some constant in wp-config.php file to enable debug and display , log errors.
define('WP_DEBUG', true); define( 'WP_DEBUG_DISPLAY', true); define( 'WP_DEBUG_LOG', true);
Then WordPress creates a debug.log file in
wp-content folder. I don’t need to go to php error log file in the server to check the error. I know we can configure local domain so that the log file is generated in the joomla local site folder but that is also not native joomla solution ! I was thinking to enable something for Joomla but didn’t find. So, I created a system plugin for Joomla to make this easy. The idea for “System Plugin – CBX PHP Debug” comes here. Just install the system plugin, enable and configure as need “Enable Debug, Display Errors, Log Error in debug file”, save and you are done. This plugin will create a file debug.log inside Joomla’s logs folder as configured in the configuration.php file.
BTW, I copied the debug init function from WordPress 🙂
Download the plugin from here
Version 1.0.0 direct download here.