← All platforms

Windows Forms error tracking

A desktop app can fail far from your desk. The Sentry .NET SDK sends Windows Forms exception reports back to your Telebugs server.

~/hoofnotes  dotnet add package Sentry
~/hoofnotes  nvim Program.cs
using System;
using Sentry;
using System.Windows.Forms;
internal static class Program
{
[STAThread]
static void Main()
{
Application.SetUnhandledExceptionMode(
UnhandledExceptionMode.ThrowException);
using var sentry = SentrySdk.Init(options =>
{
// Copy the complete DSN, key and path included.
options.Dsn = "YOUR_TELEBUGS_DSN";
options.IsGlobalModeEnabled = true;
});
Application.Run(new NotesForm());
}
}
~/hoofnotes  dotnet build

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep Sentry and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

Can a desktop app report to my server?

Yes, when it can reach your Telebugs endpoint. The SDK sends managed .NET exception reports from the Windows app; Telebugs keeps them for investigation.

Does this include native crash dumps?

No. This page covers managed exceptions and the backtraces the SDK supplies. Native crash dumps and their symbolication are a different kind of reporting.