When running a process under the debugger, I would like to start a child process in the same debugger.
Currently, I use
Process.Start(\"sample.exe\")
You should attach debugger to process you are starting. This could be done:
Here is code for "sample.exe" to attach debugger:
if (!Debugger.IsAttached)
Debugger.Launch();
Debugger.Break();
You should pass some parameter to "sample.exe" to verify if you need to attach debugger.
Process.Start("sample.exe", "Debug=true");