You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.Console.Error.WriteLine("Debug directive specified, but no process names are listed as allowed for debug.");
222
+
context.Console.Error.WriteLine($"Add your process name to the '{environmentVariableName}' environment variable.");
223
+
context.Console.Error.WriteLine($"The value of the variable should be the name of the processes, separated by a semi-colon ';', for example '{environmentVariableName}={process.ProcessName}'");
context.Console.Out.WriteLine($"Attach your debugger to process {processId} ({process.ProcessName}).");
235
+
varstartTime=DateTime.Now;
236
+
while(!Debugger.IsAttached)
237
+
{
238
+
awaitTask.Delay(500);
239
+
}
240
+
}
241
+
else
242
+
{
243
+
context.Console.Error.WriteLine($"Process name '{process.ProcessName}' is not included in the list of debuggable process names in the {environmentVariableName} environment variable ('{debuggableProcessNames}')");
244
+
context.ExitCode=errorExitCode??1;
245
+
return;
246
+
}
222
247
}
223
248
}
224
249
@@ -250,7 +275,7 @@ public static CommandLineBuilder UseEnvironmentVariableDirective(
0 commit comments