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>
?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With