Why is Visual Studio looping when debugging UnhandledException events
问题 (This looks very similar to C# UnhandledException from another thread keeps looping, but am not trying to catch the exception here, just get the chance to log something) I have some very simple C# code that sets up an UnhandledException event handler, then throws an exception: class Program { static void Main(string[] args) { AppDomain currentDomain = AppDomain.CurrentDomain; //currentDomain.UnhandledException += new UnhandledExceptionEventHandler(currentDomain_UnhandledException);