How can I run multiple copies of the same app in Debug with Visual Studio? For instance, how do I run app.exe /option1
and app.exe /option2
and still debug both? I know I can run them manually and t开发者_如何学Gohen attach, but I want an automated solution.
I have tried writing a small console app just to run 2 processes, but obviously they are not being run under debugger. Any ideas?
The debugger sometimes seems to lock out other apps a bit so I'd be wary of running two debugging instances at the same time on the same machine in case they affect each other. Instead, unless the apps need to run on the same machine, I'd suggest installing some kind of VM software and then running each debugger in a separate Virtual Machine or similar.
I ended up creating a separate project and calling application's Program.Main()
from there :)
精彩评论