Click here to Skip to main content
15,911,306 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,
I have code like this

C#
ProcessStartInfo proc = new ProcessStartInfo( "D:\MyAPP\Test.exe", Arguments );
proc.CreateNoWindow = true;
proc.UseShellExecute = false;
proc.WorkingDirectory = Path.GetDirectoryName( D:\MyAPP\Test.exe );

Process MyProcess = Process.Start( proc );


I want to debug the process (Test.exe) when my debugger comes to that code part.
Please help me.

Thanks
Dileep
Posted
Comments
Richard MacCutchan 24-Jan-14 5:34am    
Why not just start Test.exe from the debugger?

1 solution

You can't "step into" the code of Text.EXE from your debug session - it's a separate process and doesn't have a debugger associated with it, and it doesn't share the same "process space" as the thread that started it running.

Having said that, you can do it: but it's not as simple as you might want, and you will probably have to call Debug.Break in Test.EXE to start debugging or you won't see anything.
Start reading: http://msdn.microsoft.com/en-us/library/a329t4ed%28v=VS.90%29.aspx[^] and don't blame me if your whole system starts to behave oddly or slows down!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900