I\'m new to Visual Studio Express 2012 for Windows 8.
I have been able to get a simple app to work just fine, but it would throw the same \"exceptions\".
So
If the window object is available, define a window.onerror function to catch all uncaught exceptions:
window.onerror = function (message, url, lineNo)
{
console.log('Error: ' + message + '\n' + 'Line Number: ' + lineNo);
return true;
}
console.log(window);
console.log(1=2);
References
Better Error Handling With window.onerror
W3C Wiki: window.onerror