AsyncStackTraceEx 1.0.0.2
dotnet add package AsyncStackTraceEx --version 1.0.0.2
NuGet\Install-Package AsyncStackTraceEx -Version 1.0.0.2
<PackageReference Include="AsyncStackTraceEx" Version="1.0.0.2" />
paket add AsyncStackTraceEx --version 1.0.0.2
#r "nuget: AsyncStackTraceEx, 1.0.0.2"
// Install AsyncStackTraceEx as a Cake Addin #addin nuget:?package=AsyncStackTraceEx&version=1.0.0.2 // Install AsyncStackTraceEx as a Cake Tool #tool nuget:?package=AsyncStackTraceEx&version=1.0.0.2
Normally when you look at Exception.StackTrace, it looks pretty bad for async method calls, and doesn't even include line numbers when it's run on a device like Phone which lacks PDBs.
This package provides an alternative, Exception.StackTraceEx(), which has cleaned up async output, and which gives line and file numbers even on phone.
This way, if your app crashes, you can synthesize much better crash reports for the user to email back to you.
Await DownloadAsync(url).Log()
To get that richer information in exception stack-traces, you have to augment your "await expr" calls with "await expr.Log()", as shown above.
Await DownloadAsync(url).Log("DownloadAsync",url)
If you chose to include more information, then the exception stack traces you get will be even richer and more actionable.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added support for IAsyncAction/IAsyncOperation