Debug Javascript – console.log

Posted by in Software

This is the holy grail of debugging for me. It’s old school, simple and effective. It works both in browser and from command line. My code looks like:

You can make it fancier with debug levels (in if() statements or with your tiny library). I however tend to add/remove them progressively as I resolve the issues.


A little experiment: If you find this post and ad below useful, please check the ad out :-)