Visual Studio: auto attach to a process when the process is spawned

后端 未结 10 1089
青春惊慌失措
青春惊慌失措 2020-12-04 13:47

I want to attach to a process(a.exe) as soon as it is spawned, is it doable with VS? I only know the name of the process. Actually what I want to accomplish is set a breakpo

10条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 14:30

    "Entrian Attach" is a Visual Studio add-in that does exactly this - you tell it the name of your executable and it attaches the debugger as the process starts, regardless of how it's started, before any code has run.

    (Disclosure: I'm the author. I built Attach because I have this problem all the time!)

提交回复
热议问题