How do I remote debug a managed application from other machine which has visual studio. This is what I have tried:
msvsmon.exe
(64 bit version as both machines are 64 bit).msvsmon.exe
is running.What am I doing wrong here? I am trying with VS2008 Pro and OS on both systems is Windows Server 2008 R2 if it matters.
Note: I can debug unmanaged applications using Remote transport without any issues.
Even though your machines are 64 bit, make sure the applications you are running are 64 bit. For example if you are debugging a 32 bit application on the remote machine, you would want to run the 32 bit version of msvsmon.exe
This may not be the answer, but something to check to make sure of.
Update in 2017
As I've been using remote debugging more over the past few years, I've noticed a few more issues that I usually have to work through.
I also lost a lot of hours on this. The only way I've found to make it works 100%, is to use the same domain. With VS2012 it's easier to connect without being in the same domain.
But for 2008, this is working for me (A = VS side, B = machine without VS)
1) The machine A (where VS is) and B must be in the same domain. You also need to download and install VS Remote Debugger monitor on B
2) You need to start VS Remote debugger monitor on the B side, to allow incoming connection. When you start it the 1st time, it'll configure the firewall to open the ports. It also show you on which address it's listening, i.e. DOMAIN\User@hostname_B
3) Run VS with a domain admin account on A, and you'll be able to remotely debug. To connect to B in debug, use the address shown in step 2 by the monitor
Hope it'll help you !
Starting with Visual Studio 2012 you can use the Remote (no authentication) transport to debug managed code (previously VS only allowed to debug native code in Remote mode).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With