最近主工程切换到了MFC application, 发现在debug模式下不能edit and continous,在网上找了半天,才知道可以通过设置Debugger type 到Managed Only,恢复C#的edit and contious功能。新的问题来了:只要应用程序有任何未处理的异常,就直接crash,抛出系统错误框.如果将Debugger type改回原来的Auto设置可以捕捉到异常, 但弹出的异常框不能察看堆栈的信息。
问: 如何能够弹出C#中常见的可察看异常详细信息的异常框。
还有,发现现在的CER 模块也不work了,是不是在MFC的环境下如下代码就不起作用了:Application.ThreadException += new ThreadExceptionEventHandler(OnGuiUnhandledException);
// For CLR unhandled exceptions
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
CSDN上不知道如何贴图,这个问题的详细情况见我的blog :  不能正常捕捉异常 谢谢!