1

私はこれを試しましたが、うまくいかないようです:

        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 ???
    }
4

1 に答える 1

4

Ctrl + D、Eを押して、デバッガーを中断させたくない例外のチェックを外します。

編集:ダイアログが機能しない場合は、これらの回答で説明されているように、マクロでそれを行うこともできます。

于 2010-02-18T17:44:06.383 に答える