Topic: Share: logging PHP in console for debugging
I just want to share a really simple way but helpful if you are developing application in FA (or PHP in general). You can log into browser console using this library: https://github.com/ccampbell/chromephp. Put the library file in includes/ folder.
Then, just add below code in session.inc.
include_once($path_to_root . "/includes/ChromePhp.php");
function ConsoleDebug($obj){
ChromePhp::log($obj);
}
You can use it for debugging by just call ConsoleDebug($anything). It will appear in the browser console. In firefox, you don't need to install anything but in chrome you need to install extension.
For me, it is useful to debug ajax call which FA use quite a lot in many places.