Visual Studio 2010 .NET Remote Debugging

I was looking for my hat without any results, so the question is for all of you:

I have a computer in domain A. There is a virtual machine running in domain B.

I have a visual studio installed on my computer, but not on vm => so I want to debug a program running on vm (domain B) that I wrote in .NET with my visual studio installed on pc (domain A) .

When running a vsmon program on vm, you have 2 options (auth.) And no auth - only native).

When you do not choose authentication, only native, I can see the processes in my visual studio, and I can connect, but the breakpoints do not fall (because the PDB file does not contain its own characters, since it is written in .NET?)

When choosing Windows authentication, I can’t connect, and I get the error message "logon failure" ...

Any ideas / suggestions on this?

(By the way, my virtual machine firewall is disabled)

+6
source share
2 answers

You need to use Windows Authenticated Remote Debugging because you want to debug a .NET application.
Regarding your authentication problem, try this solution / workaround .

The basic information in this link is as follows:

  • On both machines, create a local account with the same name and password: net user username password /add
  • On the remote computer, add this account to the local administrators group. net localgroup administrators remotecomputername\username /add
  • On the remote computer, either log in to the new account, or run msvsmon: runas /user:remotecomputername\username "<full path>\msvsmon.exe"
  • On the local machine, either log in to the new account, or run VS under it: runas /user:localcomputername\username "<full path>\devenv.exe"
+10
source

without authentication, you cannot debug the code remotely, you need to install Windows authentication, and secondly, there will be the same user group, that is, with the same domain user, or you can make the local administrator user on both systems and start the remote debugger and VS using admin

0
source

Source: https://habr.com/ru/post/887357/


All Articles