Question

Je l'ai essayé, mais il ne semble pas fonctionner:

        Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
        Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
        AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

    static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    {
        //suppress ???
    }

    static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
    {
        //suppress ???
    }
Était-ce utile?

La solution

Appuyez sur Ctrl + D, E, et décochez l'exception que vous ne voulez pas que le débogueur pour briser le.

EDIT : Si la boîte de dialogue ne fonctionne pas, ous pouvez aussi le faire par macro comme décrit dans ces réponses .

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top