Skip to content

Commit

Permalink
Merge pull request #21 from canonical/feat/disable-debugger-wait-in-r…
Browse files Browse the repository at this point in the history
…elease-builds

Disable wait for debugger in release builds
  • Loading branch information
dviererbe authored Nov 28, 2024
2 parents 378a94d + b95ca06 commit 350512b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dotnet.Installer.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Program
{
private static async Task Main(string[] args)
{
#if DEBUG
var debugEnabled = Environment.GetEnvironmentVariable("DOTNET_INSTALLER_DEBUG")?.Equals("1") ?? false;
if (debugEnabled)
{
Expand All @@ -25,7 +26,7 @@ private static async Task Main(string[] args)
}
Log.Debug("Debugger attached");
}

#endif
var fileService = new FileService();
var manifestService = new ManifestService();
var snapService = new SnapService();
Expand Down

0 comments on commit 350512b

Please sign in to comment.