Skip to content

Commit 3ef51fb

Browse files
Add tracing to templates process launch for debugging (#31202)
1 parent 493d0bf commit 3ef51fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ProjectTemplates/Shared/Project.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ internal async Task<ProcessResult> RunDotNetNewAsync(
102102
try
103103
{
104104
Output.WriteLine("Acquired DotNetNewLock");
105+
// Temporary while investigating why this process occasionally never runs or exits on Debian 9
106+
environmentVariables.Add("COREHOST_TRACE", "1");
105107
using var execution = ProcessEx.Run(Output, AppContext.BaseDirectory, DotNetMuxer.MuxerPathOrDefault(), argString, environmentVariables);
106108
await execution.Exited;
107109
return new ProcessResult(execution);
@@ -249,7 +251,7 @@ internal async Task<ProcessResult> RunDotNetEfUpdateDatabaseAsync()
249251
{
250252
command = "dotnet-ef";
251253
}
252-
254+
253255
using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args);
254256
await result.Exited;
255257
return new ProcessResult(result);

0 commit comments

Comments
 (0)