Skip to content

Commit

Permalink
Add tracing to templates process launch for debugging (#31202)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored Mar 24, 2021
1 parent 493d0bf commit 3ef51fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ProjectTemplates/Shared/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ internal async Task<ProcessResult> RunDotNetNewAsync(
try
{
Output.WriteLine("Acquired DotNetNewLock");
// Temporary while investigating why this process occasionally never runs or exits on Debian 9
environmentVariables.Add("COREHOST_TRACE", "1");
using var execution = ProcessEx.Run(Output, AppContext.BaseDirectory, DotNetMuxer.MuxerPathOrDefault(), argString, environmentVariables);
await execution.Exited;
return new ProcessResult(execution);
Expand Down Expand Up @@ -249,7 +251,7 @@ internal async Task<ProcessResult> RunDotNetEfUpdateDatabaseAsync()
{
command = "dotnet-ef";
}

using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args);
await result.Exited;
return new ProcessResult(result);
Expand Down

0 comments on commit 3ef51fb

Please sign in to comment.