【发布时间】:2013-10-22 15:48:36
【问题描述】:
我无法调试我的 windows phone 7 项目。当 windows phone 模拟器启动时,代码在 System.Diagnostics.Debugger.Break();
上停止如何调试我的项目?
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
if (System.Diagnostics.Debugger.IsAttached)
{
// An unhandled exception has occurred; break into the debugger
**System.Diagnostics.Debugger.Break();**
}
}
【问题讨论】:
-
检查异常信息。这很可能是导航问题导致的异常。
-
尝试使用 Watch Window 查看 e.Message 的值是什么。