One other trick I found useful is the console.table() method.
http://www.codediesel.com/javascript/javascript-console-tricks/
dump any object
http://www.codediesel.com/javascript/javascript-console-tricks/
JavaScript:
var payments = [
{date: "2011-11-14T16:17:54Z", quantity: 2, total: 190, tip: 100, type: "tab"},
{date: "2011-11-14T16:20:19Z", quantity: 2, total: 190, tip: 100, type: "tab"},
{date: "2011-11-14T16:28:54Z", quantity: 1, total: 300, tip: 200, type: "visa"}];
console.table(payments);
dump any object
JavaScript:
//https://css-tricks.com/debugging-tips-tricks/
console.dir(document)