Visual Studio诊断工具 - 如何更改选定的流程?

时间:2015-10-15 12:23:41

标签: visual-studio debugging sharepoint process debug-diagnostic-tool

我在Visual Studio 2015中使用Diagnostic Tools调试SharePoint Web部件。

我已附加到几个w3wp.exe进程,窗口显示以下消息:

Multiple processes are being debugged, but this window is only showing data for w3wp.exe (PID: 1208).

Multiple processes are being debugged, but this window is only showing data for w3wp.exe (PID: 1208).

那没关系,但我该如何改变它所显示的过程?

3 个答案:

答案 0 :(得分:20)

它将分析您选择的启动项目。如果您有多个启动项目,请在列表顶部设置要分析的项目。

答案 1 :(得分:2)

  1. Run the application without debugging (Ctrl-F5).
  2. Attach the debugger to a process (Ctrl-Alt-P).
  3. Choose the process you want to see.
  4. Click Attach.

答案 2 :(得分:0)

Attach to a process

调试器还可以附加到在Visual Studio外部的进程中运行的程序,包括在远程设备上运行的程序。附加到程序后,可以使用调试器执行命令,检查程序状态等。您检查程序的能力可能会受到限制,具体取决于程序是否使用调试信息构建,以及您是否可以访问程序的源代码,以及公共语言运行时JIT编译器是否正在跟踪调试信息。

有关详细信息,请参阅Attach to Running Processes

选择“调试”,“附加到进程”。在“附加到进程”对话框中,从“可用进程”列表中选择进程,然后选择“附加”。希望它有所帮助。

example

相关问题