Stack trace of UnhandledException

259 Views Asked by At

I want to store the UnhandledException of my UWP app in Bugsnag. There is a subscription to the UnhandledException event In App.XAML.cs.

UnhandledException += App_UnhandledException;

When the event fired we send an exception to Bugsnag using Notify method.

private async void App_UnhandledException(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e)
{
    e.Handled = true;
    if(e is InternetConnectionExeption)
        await AsyncMethod();
    BugsnagClient.Notify(e.Exception, Severiry.Error);
}

In Debug mode We get the cause of the exception in e.Message. But in release mode, We get the following: enter image description here Using this stacktrace I can`t analyze and understand the cause of the exception.

For release mode in the .csproj file I added the following:

<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>

In the popup of creating a package, I set the checkbox. enter image description here But the result is the same. The result is also the same when I run the application in release mode (without creating app package)

The question is. How I can get a stack trace in detail? I would like to know the method name where exceptions were thrown.

0

There are 0 best solutions below