Michael Ray Lovett
Michael Ray Lovett

Reputation: 7040

Visual Studio How to debug project A when started by project B?

I have a Visual Studio 2015 solution with two projects, AppA and AppB. At a certain point, AppA launches AppB. I would like the debugger to start running when AppB is launched by AppA so I can set breakpoints, etc, in AppB, but I don't know how to set this up.

Any help would be appreciated!! Michael

Upvotes: 1

Views: 31

Answers (1)

Pedro
Pedro

Reputation: 12328

In the startup code for AppB, add a call to Debugger.Break. This will pause execution to allow you to attach a debugger.

Upvotes: 1

Related Questions