vrijdag, april 14, 2006

 

Attach to Visual Studio's Development Web Server easily using a macro

Something I have to do frequently is attaching to a running web application for debugging purposes. I don't always start my web applications in debug mode, but I often need to attach at some point when doing some testing.Unfortunately, there is no easy way to do this from Visual Studio. We have to attach to the server process "by hand". After some time doing this, you'll find it a bit boring...Here is a quick-n-dirty solution. It's a simple macro that attaches to the first web server process it finds. Just copy the code below to your macros using the Macro IDE (Tools Macros Macro IDE...).

Attach to Visual Studio's Development Web Server easily using a macro