Visual Studio 2017调试同一项目的多个实例 [英] Visual Studio 2017 Debug Multiple Instances of the Same Project

查看:79
本文介绍了Visual Studio 2017调试同一项目的多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个命令行应用程序,每个命令行参数处理不同的作业.例如,-w"启动一个Web项目,而"-c"运行一个简单的命令行过程.

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.

有时这两个项目必须互相交谈.例如,我以"-w"启动一个实例,然后启动了一个API Web应用程序.我以"-c"启动第二个实例,命令行应用程序通过API连接并处理了一些返回的数据.

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.

我了解我可以同时调试多个不同的项目,但是有没有一种方法可以在Visual Studio中调试SAME项目的多个实例?

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?

推荐答案

是:

  1. 正常调试程序以获取第一个实例
  2. 在解决方案资源管理器中右键单击您的项目,然后选择 Debug -> Start New Instance

您还可以在解决方案中启动其他程序.

You can also launch other programs in your solution as well.

这篇关于Visual Studio 2017调试同一项目的多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆