Reputation: 401
I have created a single command line application that handles different jobs per a command line argument. For instance, the "-w" starts a web project and "-c" runs a simple command line process.
Sometimes these two projects have to speak with each other. For instance, I start one instance with "-w" and an API web application launches. I start a second instance with "-c" and a command line application connects via API and processes some returned data.
I understand that I can debug multiple different projects at the same time, but is there a way to debug multiple instances of the SAME project in Visual Studio?
Upvotes: 1
Views: 4730
Reputation: 4263
If you want to pass different startup arguments to each instance, than you can do following:
For each instance you want to run:
Add New Empty Project to the same Solution
Under Project Properties -> Debugging specify
Under Solution Properties choose Multiple startup projects and select projects you want to Debug at the same time
Now if you hit F5 you can debug all projects you want eventually some multiple instances with specific command line arguments for each one.
Upvotes: 1
Reputation: 4395
Yes:
Debug
-> Start New Instance
You can also launch other programs in your solution as well.
Upvotes: 4