我無法調試我的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