window.onerror = function(msg,url,line,col,err) { console.log(err.stack) }
window.onerror = function() { console.log(window.event.error.stack) }
throw JSON.stringify(some_var_to_watch);