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

后端 未结 10 1145
青春惊慌失措
青春惊慌失措 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:48

    I have been looking for some way to do this when I launch a console application within an acceptance test.

    I found this today - https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/24/introducing-the-child-process-debugging-power-tool/

    It's an add-on to visual studio, and it works a treat. When I debug an acceptance test (I use resharper test runner) and place a breakpoint within the app that gets launched, I can now debug the app in the same visual studio instance.

提交回复
热议问题