我无法调试我的windows phone 7 project.while windows phone模拟器正在启动,代码停止在System.Diagnostics.Debugger.Break();windows phone 7.1上的调试
我该如何调试我的项目?
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();**
}
}
检查异常消息。这可能是导航问题导致的异常。 – Vitalij 2012-03-27 21:50:15
尝试使用Watch Window查看e.Message的值是什么。 – 2012-03-28 11:51:15