我已将 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);