Skip to content

Commit

Permalink
Add the new MacOs env variable to allow dumps to be created. (#2496)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Jul 30, 2020
1 parent 63e623f commit aa3efaa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public IHangDumper Create(string targetFramework)
}

EqtTrace.Info($"HangDumperFactory: This is OSX on net5.0 or newer, returning the standard NETClient library dumper.");

// enabling dumps on MacOS needs to be done explicitly https://github.com/dotnet/runtime/pull/40105
Environment.SetEnvironmentVariable("COMPlus_DbgEnableElfDumpOnMacOS", "1");
return new NetClientDumper();
}

Expand Down

0 comments on commit aa3efaa

Please sign in to comment.