Fabrice's post shows how to attach to Visual Studio's Development Web Server easily using a macro, but the same principle can be applied to any process you need to attach to.