locked
Global error handler

    Question

  • Hi,

    I'm developing a Metro Style App with HTML/JS and I would like to know if there is any kind of "global error handler" mechanism, like global.asax or the handler for unexpected exceptions in Silverlight.

    I have tried to implement window.onerror, but it is not called in some cases and the application closes unexpectedly.

    Thanks in advance for your help. 

     


    Si la respuesta es correcta, por favor márcala como correcta. También puedes votarla como útil si te lo ha sido.

    Monday, May 14, 2012 5:14 PM

All replies

  • Hi Javier,

    In what cases is the handler not called?  It should work as long as the error occurs in the context of the Javascript.

    -Jeff


    Jeff Sanders (MSFT)

    Monday, May 14, 2012 5:45 PM
    Moderator