VS attaching to process disabled

前端 未结 4 920
孤独总比滥情好
孤独总比滥情好 2021-01-04 01:08

A few days ago, the attach button in \"Attach to process\" dialogue became disabled in VS 2010 and VS 2008 likewise. At first I thought that it is just an extension I\'ve in

相关标签:
4条回答
  • 2021-01-04 01:20

    Where it says enter image description here

    you should press 'Select' and ensure at least managed is ticked. (or choose automatic) enter image description here

    otherwise, the 'Attach' button will be disabled.

    0 讨论(0)
  • 2021-01-04 01:31

    I was trying to debug a windows service as described here and had the same issue. The solution was to run Visual Studio as Administrator and select to see processes from all users.

    0 讨论(0)
  • 2021-01-04 01:33

    It could also be because there is already another debugger attached to the process - probably the currently running instance of Visual Studio but it may be another instance of Visual Studio, or another debugger entirely (such as WinDbg or a remote debugging session).

    Check the "Processes" window (usually found under Debug -> Windows -> Processes) to see what processes Visual Studio is debugging.

    Try stopping Visual Studio but don't close the process.

    0 讨论(0)
  • 2021-01-04 01:34

    I have come across a weird situation under which Attach button was disabled. This was because of DebugDiag. Please refer the following thread for info.

    0 讨论(0)
提交回复
热议问题