Run multiple copies of an app from Visual Studio

2019-07-22 19:48发布

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 then 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?

2条回答
可以哭但决不认输i
2楼-- · 2019-07-22 20:33

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.

查看更多
一纸荒年 Trace。
3楼-- · 2019-07-22 20:33

I ended up creating a separate project and calling application's Program.Main() from there :)

查看更多
登录 后发表回答