如何指定要在visual studio中停止的程序?

时间:2014-05-29 18:19:29

标签: c# visual-studio debugging

我有两个非常简单的程序。

这是1:

static void Main(string[] args)
{
    PipeClient client = new PipeClient();
    client.Send("Hello World");
    client.Send("Hello World 2");
    Console.ReadLine();
}

这里是2

static void Main(string[] args)
{
    using (var server = new PipeServer())
    {
        server.Start();
        Console.WriteLine("Press Enter to End");
        Console.ReadLine();
    }
}

我转到解决方案属性,在常见属性下我按如下方式设置配置: enter image description here

我启动调试器。

两个程序都开始了,现在我想使用break all功能,因为我想检查两个程序中的一个;但是,当我使用break all图标时,我只能检查这两个项目中的一个。我如何允许自己查看是否可能,如果不是,我如何切换我正在检查的程序?

1 个答案:

答案 0 :(得分:2)

This source说"在Debug Location工具栏上,选择Process查看Process列表框。选择要指定为当前进程的进程。 在流程之间切换"

enter image description here