Javascript debugging trick `console.trace`

Chrome has lots of handy features for javascript debugging. For those who do not know, here is a very useful tool called console.trace that gives you list of call stack.  It gives you important back record of who and where that particular code was executed. Just do

console.trace('trace this code');

 

Please note this feature is not available in all browsers.