Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript error in WebView with Windows 8 Metro

I have a <WebView> control on a page in my application. The user can pretty much enter whatever URL they like and have it display in this WebView. This is by design.

The problem is, there are pages on the internet that throw JavaScript errors, and (for some reason) cause an unhandled exception to bubble up through the .NET application, as well.

My question is: Where do I catch JavaScript exceptions/errors when using a <WebView>?

like image 259
qJake Avatar asked Jun 19 '12 02:06

qJake


1 Answers

I had the same problem. it was somehow related to just-in-time debugging for Scripts. Try the following (from VS 2012): Uncheck the Scripts box in Debug -> Options and Settings -> Debugging -> Just in time

Worked for me.

like image 137
Neil Schaper Avatar answered Nov 11 '22 14:11

Neil Schaper