I've got a program that spawns two other proccesses using System.Diagnostics.Process
. Their output is captured by the first program:
players[p.Key].StartInfo = new ProcessStartInfo
{
FileName = args[i],
RedirectStandardInput = true,
RedirectStandardOutput = true,
UseShellExecute = false
};
I'm trying to debug these sub-proccesses. Debug.WriteLine
works from the main program, but it isn't captured when called from within the sub-processes. How can I get it to work?
Is there a way to "redirect" that too? Or to open an output window in VS for the sub-proccesses?