Search code examples
.netdebuggingw3wpmdbg

Attaching to w3wp using mdbg


I am trying to attach to the w3wp process using the command line managed debugger (mdbg). I am not able to see the process in the list of processes with the "a" command.

I am sure that the problem is that the w3wp process is running in another session under the LocalSystem account and cannot find any documentation on how to attach to those types of processes using mdbg.

Is it possible?


Solution

  • It turns out that I was running the w3wp process in 64 bit mode and running the mdbg process in 32-bit mode. I had a 32 bit powershell window open which obscured the fact that I was running in 32-bit mode.

    As soon as I executed mdbg in 64-bit mode, w3wp showed up.