Visual Studio Diagnostic Tools - how to change selected process?

允我心安 提交于 2019-12-09 07:36:04

问题


I'm using Diagnostic Tools in Visual Studio 2015 debugging SharePoint Web Part.

I'm attached to a few w3wp.exe processes and the window displays this message:

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

That's fine but how do I change the process which it's showing?


回答1:


It will analyze your selected startup project. If you have multiple startup projects, set the one you want to analyze at the top of the list.




回答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.



回答3:


Attach to a process

The debugger can also to attach to programs that are running in processes outside of Visual Studio, including programs that are running on a remote device. After you attach to a program, you can use debugger execution commands, inspect the program state, and so on. Your ability to inspect the program might be limited, depending on whether the program was built with debug information and whether you have access to the program's source code, and whether the common language runtime JIT compiler is tracking debug information.

See Attach to Running Processes for more information.

Choose Debug, Attach to Process. On the Attach to Process dialog box, select the process from the Available Processes list, and then choose Attach. hope it helps.



来源:https://stackoverflow.com/questions/33148514/visual-studio-diagnostic-tools-how-to-change-selected-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!