|
-
April 24th, 2009, 04:31 PM
#1
Debugging Proj1 calling Proj2...stepping into Proj2
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!
-
April 27th, 2009, 03:45 AM
#2
Re: Debugging Proj1 calling Proj2...stepping into Proj2
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:
Code:
System.Diagnostics.Debugger.Break();
And, fou course, Proj2 must be build in debug configuration with appropriate .pdb file generated.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|