Skip to content

Commit

Permalink
feat: Allow disabling generated Application.UnhandledException handler
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Sep 9, 2024
1 parent 48d42f6 commit 307acc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void ApplyLiteralProperties()

void AttachUnhandledExceptionHandler()
{
writer.Append($"#if DEBUG");
writer.Append($"#if DEBUG && !DISABLE_GENERATED_UNHANDLED_EXCEPTION_HANDLER");
writer.AppendLine();
writer.AppendLineIndented($"UnhandledException += (s, e) =>");
writer.AppendLineIndented("{");
Expand Down

0 comments on commit 307acc1

Please sign in to comment.