Visual Studio Remote Debugging Extensibility
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2008-11-07T15:29:24Z
Indexed on
2010/05/25
10:01 UTC
Read the original article
Hit count: 259
I'm trying to attach to a remote machine with code similar to the following:
Debugger2 db (Debugger2)dte.Debugger;
Transport trans = db.Transports.Item("Default");
Process2 proc2 = (Process2)db.GetProcesses(trans, "MACHINENAME").Item("SERVICENAME");
proc2.Attach2();
I've gotten it to work by logging on through remote desktop and manually starting the debugger, but I have to stay logged in. The problem is, I don't want to stay logged into the remote machine. Is there a way to automatically launch the debugger, similar to what happens when I attach through the IDE?
© Stack Overflow or respective owner