从一个Visual Studio实例调试程序的多个副本 [英] Debug multiple copies of a program from one Visual Studio instance
问题描述
我有一个pre-alpha GUI程序,我正在 dogfooding 并希望可以在调试器下运行(当出现错误;)
时,但是我不想为应用程序的每个实例启动新的Visual Studio副本.可以这样做吗?
I have a pre-alpha GUI program that I'm dogfooding and want to run under the debugger (for when things go wrong ;)
, but I don't want to have to launch a new copy of Visual Studio for each instance of the application. Can this be done?
我不希望一次调试多个实例,但是我仍然希望调试器能够查找所有实例.另外,我每天要启动数十次该应用程序,因此它必须很容易做到.
I don't expect to actually be debugging more than one instance at a time, but I still want the debugger in the look for all of them. Also, I'm starting the application a few dozen time a day, so it would have to be easy to do.
推荐答案
您可以在一个Visual Studio实例中多次启动相同或不同项目的实例.方法如下:右键单击解决方案资源管理器中的任何项目,转到 Debug 上下文菜单项,然后单击启动新实例.
You can start an instance of the same, or different projects multiple times in one instance of Visual Studio. Here is how: Right click on any project in Solution Explorer, go to the Debug context menu item, and click Start new instance.
您可以从 Processes 窗口查看和操作所有正在运行的进程(菜单 Debug → Windows → Processes ).菜单项(和 Processes 窗口)仅在应用程序运行时(在Visual Studio中)可用.
You can view and manipulate all your running processes from the Processes window (menu Debug → Windows → Processes). The menu item (and the Processes window) is only available when the application is running (under Visual Studio).
这篇关于从一个Visual Studio实例调试程序的多个副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!