使用不同的配置调试同一项目的2个以上实例

使用不同的配置调试同一项目的2个以上实例

问题描述:

我正在编写一个分布式应用程序,并且测试要求我一次运行多个实例.

I'm writing a distributed app and testing requires that I run more than one instance at a time.

是否可以调试同一项目的两个或多个不同的实例(最简单的方法是传递不同的命令行选项)?

Is it possible to debug two or more distinct instances of the same project (at the simplest, passing in different command-line options)?

是的,附加到两个进程(调试->附加到进程).它们将出现在进程"调试窗口下,并且它们的线程将在线程"窗口中按进程分组/排列.

Yes, attach to both processes (Debug -> Attach to Process). They will appear under the Processes debug window and their threads will be grouped/headed by process in the Threads window.