I'm connected via Remote desktop connection to a Windows Server 2012R2 running a Windows 8 in hyper-v (the Windows 8 machine is connected via a local switch to the Windows Server 2012R2). Is it possible to debug a process running in the Windows 8 machine?


enter image description here

  • install the Remote Debugging service on the system you wish to connect the debugger to, and connect over it. Its a very finicky system though. I only got it going once. every other time it was more trouble than installing vs on the target machine. – Frank Thomas Jan 4 '15 at 15:34

You have a couple of options (depending on what myprocess.exe is - driver or normal process, managed or unmanaged).

1) (local debugging) You can debug if you install WinDbg on the Win8 box and then go on from there (either attach the debugger to the process or start the process from WinDbg or other).

2) (kernel debugging) You can debug if you a) install WinDbg on the 2012R2 box, b) expose a pipe via a COM port from the VM (via VM settings) c) connect WinDbg to the pipe as administrator ( windbg.exe -k com:port=\.\pipe\mypipe,pipe,resets=0,reconnect ).

3) (remote debugging) Never tried it, but I have heard that you can connect the VS instance from My Laptop to the remote Win8.

Hope this helps.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.