Attaching to a child process automatically in Visual Studio during Debugging

前端 未结 5 1346
野性不改
野性不改 2020-12-04 21:56

When writing plugins for media center your plugin is hosted in ehexthost.exe this exe gets launched from ehshell.exe and you have no way of launchi

5条回答
  •  情话喂你
    2020-12-04 22:29

    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
    

提交回复
热议问题