C# – .NET remote debugging as another user from another domain

cdebuggingnetremote-debuggingvisual studio 2010

I am trying to debug remotely via Visual Studio 2010. But I am unable to tell the debugger to use another (remote) account on the remote machine. (Not to use my account.)

Any hints?

UPDATE: I don't have the remote account on my computer (it is in another domain). So I cannot use runas.

Best Answer

Been fighting with this for a long time.

Check that

  1. Both computers are in the same domain OR both VS remote debugger and client VS are running as a same user with identical password. Your users can be in different domains or workgroups but login name must be identical
  2. Unrestricted direct connection between machines in both direction is required.