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

When I’ve faced this situation before (and I controlled both processes), I found a decent workaround is to put a call to Debugger.Launch() in the spawning process’ entry point. VS will then pop up a dialog box and let you attach to the process.

Leave a Comment