andrew
andrew

Reputation: 2469

Visual Studio, Debug project that calls another project within the same solution file

I have a solution in Visual studio with two projects. One project is a launcher application (calls different executable depending on the arguments, similar to how VS launches the approriate version depending on the .sln file) and the second project contains the executable called by the launcher.

Is there a way to debug the launcher AND the call to second program?

I found some posts about setting up multiple startup projects, however, these do not suit my needs because I am not starting the launcher and the application simultaneously, but in sequence.

I can open the project in vs 2012 or 2013 so I am open to solutions for either version. Thanks

Upvotes: 0

Views: 4136

Answers (1)

Rahul
Rahul

Reputation: 77866

Is there a way to debug the launcher AND the call to second program?

Unless it's different application (external application) you shouldn't face any issue debugging the same.

In case, pressing F11 doesn't jumps to a method in second project; you can explicitly put a break point in that method in second project and then F11 should be able to hit the same.

If it's a external application; then you will have to attach to debugger by selecting Debug Menu -> Attach To Process and then debugger will be able to hit the break point.

Upvotes: 0

Related Questions