Visual Studio - Attach to process shortcut

后端 未结 12 760
情歌与酒
情歌与酒 2020-11-27 16:42

When I want to debug I have to do Debug->Attach to Process -> Look for a process in the list -> Attach.

I was wondering if I can create some kind of a shortcut to

12条回答
  •  萌比男神i
    2020-11-27 17:25

    VS extensions

    • Debug Attach Manager
    • ReAttach
    • Resurrect

    More: Search the VS Marketplace for "attach"

    Keyboard

    • The attach to process shortcut is Ctrl+Alt+P in Visual Studio 2005 and above. You can then press the first letter of the process name you want, e.g. w for w3wp.exe and it'll jump to that, then Enter to attach.
    • You can use the Alt key shortcut ALT+D,P to launch the "Attach to Process" window via Debug menu.

    Code

    • Add System.Diagnostics.Debugger.Launch() to your code

    Current release is VS2015 at time of writing.

    Go ahead and edit/extend this answer :-)

提交回复
热议问题