posts - 50, comments - 168, trackbacks - 6

My Links

News



View Marcin Celej's profile on LinkedIn

Archives

Post Categories

Attaching to a process from VS using macro

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
            process.Attach()
            Exit Sub
        End If
    Next

    MsgBox("No nunit-gui.exe found")
End Sub
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Monday, September 18, 2006 8:04 AM | Filed Under [ Visual Studio ]

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: