VS attaching to process disabled

陌路散爱 提交于 2019-11-30 17:24:47

Where it says

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

otherwise, the 'Attach' button will be disabled.

Suresh Narayanaswamy

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.

live-love

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.

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.

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