Visual studio 2010 查找visual studio 2010 for windows phone中未处理的异常类型

Visual studio 2010 查找visual studio 2010 for windows phone中未处理的异常类型,visual-studio-2010,windows-phone-7,Visual Studio 2010,Windows Phone 7,我的新windows phone 7应用程序从未在emulator中实际打开,而是停留在App.xaml.cs中的应用程序_UnhandledException-function中。这个函数看起来像 // Code to execute on Unhandled Exceptions private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e

我的新windows phone 7应用程序从未在emulator中实际打开,而是停留在App.xaml.cs中的应用程序_UnhandledException-function中。这个函数看起来像

    // Code to execute on Unhandled Exceptions
    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();
        }
    }
显然发生了一些未处理的异常,但我不知道可能是什么。是否有可能进一步了解此异常及其原因


感谢您的帮助

应用程序UnhandledExceptionEventTargets具有一个
ExceptionObject
属性,这是引发的异常。因此,查询
e
参数的内容


我认为这段代码不是问题的根源。我认为问题出在MainPage.xaml.cs的初始化函数中。您可以共享该属性的代码吗?我是否可以显示该属性的值,而不是将其与您提到的页面中的值进行比较?您可以,这是一个常见的异常,因为您通常会在桌面应用程序中看到它-您可以显示一个带有
e.ToString()
的消息框,尽管这不是很有用。