Geeks With Blogs
Marcin Celej blog

I found interesting macro. It allows you to attach to a process from VS. I use it very often to attach to NUnit gui. I have a toolbar button in my VS that invokes the macro. I found it quite useful.

'This subroutine attaches to the first nunit-gui.exe process found.
Sub AttachToNUnit()
    Dim process As EnvDTE.Process

    For Each process In DTE.Debugger.LocalProcesses
        If (process.Name.ToLower().EndsWith("nunit-gui.exe")) Then
            Exit Sub
        End If

    MsgBox("No nunit-gui.exe found")
End Sub
Posted on Monday, September 18, 2006 8:04 AM Visual Studio | Back to top

Comments on this post: Attaching to a process from VS using macro

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Marcin Celej | Powered by: