デバッガが NotImplementedException 例外で中断しないようにするにはどうすればよいでしょうか?
-
21-09-2019 - |
質問
これを試してみましたが、うまくいかないようです:
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 ???
}
解決
Ctrl+D、E を押して、デバッガに中断させたくない例外のチェックを外します。
編集:ダイアログが機能しない場合は、「」で説明されているようにマクロで行うこともできます。 これらの答え.
所属していません StackOverflow