Skip to content

Commit f9c63a8

Browse files
authored
Log pid of remote executed process. (#5525)
When debugging different parts of the test pipeline it is good to see the different pids of launched processes in case there is need to attach debugger to it. For the debuggee we output the pid, but for the debugger executed through remote executor we didn't. This PR adds logging to output pid of started process.
1 parent 7906474 commit f9c63a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Microsoft.Diagnostics.TestHelpers/RemoteExecutorHelper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public static async Task<int> RemoteInvoke(ITestOutputHelper output, TestConfigu
2929
// When RemoteExecutor is fixed the "using" can be added and the GC.SuppressFinalize be removed.
3030
RemoteInvokeHandle remoteInvokeHandle = RemoteExecutor.Invoke(method, config.Serialize(), options);
3131
GC.SuppressFinalize(remoteInvokeHandle);
32+
33+
output.WriteLine($"RemoteExecutorHelper.RemoteInvoke: starting process {remoteInvokeHandle.Process.Id}");
34+
3235
try
3336
{
3437
Task stdOutputTask = WriteStreamToOutput(remoteInvokeHandle.Process.StandardOutput, output);

0 commit comments

Comments
 (0)