Skip to content

Commit

Permalink
feat: Allow disabling generated Application.UnhandledException handler
Browse files Browse the repository at this point in the history
(cherry picked from commit 307acc1)
  • Loading branch information
MartinZikmund authored and mergify[bot] committed Sep 10, 2024
1 parent dbd23f3 commit 621c298
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 621c298

Please sign in to comment.