Attaching to a child process automatically in Visual Studio during Debugging

I would use a macro. I’ve redefined my F5 function to attach to the asp.net process instead of the long build/validate it usually performs. This works pretty well for me and it’s really easy.

    For Each process In DTE.Debugger.LocalProcesses
        If (process.Name.IndexOf("aspnet_wp.exe") <> -1) Then
            process.Attach()
            Exit Sub
        End If
    Next

Leave a Comment