Click to See Complete Forum and Search --> : Debugging Proj1 calling Proj2...stepping into Proj2


GeekGirl
April 24th, 2009, 04:31 PM
I've done this before but it's been a while.

I have 2 C# projects (both exe's). One app calls the other. Let's say Proj1 calls Proj2. The code that calls Proj2 is startinfo.FileName Proj2.exe.

I want to step into Proj2 when Proj1 calls it.

Does anyone know where I can find the steps to do this? I've tried starting Proj2 with Proj1 as the startup project. It steps into Proj1 but then when it gets to the call of Proj2, it just runs it.



Thanks!

boudino
April 27th, 2009, 03:45 AM
You can either attach the debugger to running Proj2 process, or you can place somewhere in Proj2 code (most probalbly to the Main() method) following code:

System.Diagnostics.Debugger.Break();

And, fou course, Proj2 must be build in debug configuration with appropriate .pdb file generated.