Thursday, 2 October 2008

Attach to w3wp worker process

As a web developer I often need to attach to the worker process. Wouldn't it be nice if I could use a simple keystroke rather than following the process of selecting Debug -> Attach to process -> Then selecting the w3wp.

The following post has a macro that will do this for you, I wont take the credit for this solution:

The post also tells you how to bind a shortcut to the macro. This tip saves me time and frustration.

When logging in with a domain account, you need to change the following:

Dim compName As String = WindowsIdentity.GetCurrent().Name
compName = compName.Substring(0, compName.IndexOf("\"))


Dim compName As String = My.Computer.Name

No comments: