我试图测试使用Visual Studio 2015 Shell(独立)的应用程序。 为了用Visual Studio测试扩展包,我找到了older versions的样本。他们是这样的: [TestMethod]
[HostType("VS IDE")]
public void CreateVisualization()
{
TestUtils testUtils = new Te
我试图通过使用此代码附加一个过程VS: DTE dte = (DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.11.0");
EnvDTE.Processes pro = dte.Debugger.LocalProcesses;
foreach (EnvDTE.Process p in
升级到Visual Studio 2015后,我注意到vs命令附加到进程不再可用。我发现这非常有用,因为我可以单击工具栏上的按钮,并打开包含代码库中所有网站的对话框。这让我可以随意挑选。 不幸的是,现在我不得不点击'attach to process'选项,然后在对话框中突出显示所有w3wp条目,因为没有办法区分这些网站。 我确实尝试了ReAttach插件,但这只给你标准的IIS/APPPOOL
当我跑我的C#的WinForms在Visual Studio IDE的可执行文件之外的第一次,我收到了以下对话: "<Application> has stopped working, Windows can check online..."
所以我附到使用Visual Studio的附加到进程的过程,该过程显示程序在InitializeComponent()内暂停(但未提供进一步的线索)。
我可以连接到我的IIS框上的w3p过程就好了。尽管它似乎跳过了一些区域,但我可以一步步走过。此外,当我尝试查看变量的值,我得到: Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has