简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM