How can I attach to a process in Visual Studio?

You can record a macro to do it. In VS2005 I did this: ctrl-shift-R (start recording) ctrl-alt-P (attach to process) select the process OK ctrl-shift-R (stop recording) To play back the temporary macro, ctrl-shift-P. It generated the following code in the Macros IDE: Sub TemporaryMacro() Try Dim dbg2 As EnvDTE80.

Debugger2 = DTE. Debugger Dim trans As EnvDTE80. Transport = dbg2.Transports.

Item("Default") Dim dbgeng(1) As EnvDTE80. Engine dbgeng(0) = trans.Engines. Item("Native") Dim proc2 As EnvDTE80.

Process2 = dbg2. GetProcesses(trans, ""). Item("cmd.

Exe") proc2. Attach2(dbgeng) Catch ex As System. Exception MsgBox(ex.

Message) End Try End Sub You can convert this to a permanent macro in the Macros IDE and then bind it to a keystroke in the Tools-Options-Keyboard pane.

Awesome, thanks! – orip Sep 9 '09 at 10:27.

Ctrl+Alt+P and select aspnet_web. Exe from the list if you're using Win XP.

The "Attach to Process..." tool should be under the Debug drop-down list in VS2005. If its not you can add it to your toolbar by using Tools > Customize > Select the Debug category > Drag the "Attach to Process..." link from the Commands onto your preferred toolbar or drop-down list. Once you have the tool open you'll need to set the 'Qualifier' to SHAREPOINT and the 'Attach to:' to Workflow Code.

The process your wanting to attach to is w3wp. Exe with the Type of Workflow. This process doesn't always automatically start for me after an iisreset but I can manually start it by initiating a workflow (doesn't matter if it gets errors).

Hope this helps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions