0

我已将 HockeyApp 集成到我的 UWP 应用程序中,并将 NotImplementedException 放在按钮单击上,仅用于测试目的。我在曲棍球中看到的是以下内容

Exception Stack:
SharedLibrary!<BaseAddress>+0x68beef
SharedLibrary!<BaseAddress>+0x8255c6
SharedLibrary!<BaseAddress>+0x8d41b8
SharedLibrary!<BaseAddress>+0x89ccef
GalaSoft.MvvmLight.Helpers.WeakAction.Execute() in D:\GalaSoft\mydotnet\MVVMLight\source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (PCL)\Helpers\WeakAction.cs:line 287
GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object parameter) in D:\GalaSoft\mydotnet\MVVMLight\source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (PCL)\Command\RelayCommand.cs:line 221
SharedLibrary!<BaseAddress>+0x6a7f41
SharedLibrary!<BaseAddress>+0x6a7eb3
McgInterop.McgHelpers.ThrowFailed(Int32 hr, RuntimeTypeHandle typeHnd) in f:\SVN\TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\Helpers.g.cs:line 8148
McgInterop.ComCallHelpers.ComCall__HRESULT($__ComObject __this, RuntimeTypeHandle __typeHnd, Int32 __targetIndex) in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\SharedStubs.g.cs:line 9827
McgInterop.ForwardComSharedStubs.Proc_<System.__Canon>($__ComObject __this, Int32 __targetIndex) in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\SharedStubs.g.cs:line 622
Windows.ApplicationModel.Core.IUnhandledError__Impl.StubClass.Propagate($__ComObject __this) in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\ImplTypes.g.cs:line 105254
Windows.ApplicationModel.Core.UnhandledError.Propagate() in f:\SVN\ TestApp\ TestApp\obj\x86\Test\ilc\intermediate\ TestApp.McgInterop\SafeTypes.g.cs:line 44801
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, $UnhandledErrorDetectedEventArgs e)
TestApp.ViewModel.LoginViewModel.OnLoginButtonClick() in F:\SVN\ TestApp\TestApp\ViewModel\LoginViewModel.cs:line 71
_$ILCT$.$ILT$ReflectionDynamicInvoke$.InvokeRetV(Object thisPtr, IntPtr methodToCall, ArgSetupState argSetupState, Boolean targetIsThisCall)
SharedLibrary!<BaseAddress>+0x68c058
SharedLibrary!<BaseAddress>+0x68bcb2

与 NotImplementedException 无关。在这种情况下,这个崩溃日志对我来说毫无用处,因为它没有告诉我真正的问题是什么。

我应该配置其他东西吗?这是当前配置:

    HockeyClient.Current.Configure("<MY_HOCKEY_ID>",
        new TelemetryConfiguration { EnableDiagnostics = true })
        .SetExceptionDescriptionLoader((Exception ex) => "Exception HResult:" + ex.StackTrace);
4

1 回答 1

0

我应该配置其他东西吗?

请注意,您需要将符号 (*.pdb) 文件上传到 HockeyApp 以便符号化您的 UWP 应用程序的崩溃。

由于目前您的应用似乎尚未在商店中发布,您可以构建侧载符号。

您可以针对每个平台(x86、x64、ARM)执行以下步骤:

  1. 在 Visual Studio 中选择复选框 Compile with .NET Native tool chain
  2. 构建应用程序
  3. 从 \bin[Platform]\Release\ilc\ 文件夹复制 *.pdb 文件

然后你可以将它们上传到 Hockey 应用程序。

有关详细信息,您可以参考如何为 UWP 应用程序上传符号

于 2017-08-11T09:16:06.883 回答