Visual Studio Remote Debugging

I am trying to remotely debug a service using visual studio 2005.

When I run msvsmon.exe as an application, I get the user interface, and I can change it to noauth and anyuser, and then when I try to connect to the process from visual studio remotely, I get the message erro, t joining the process being executed in a session in which msvsmon.exe is not running. The service session is 0.

Therefore, I can successfully start msvsmon.exe as a service, but I cannot configure it in / noauth and / anyuser mode.

binPath for the service: "c: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ Remote Debugger \ x86 \ msvsmon.exe" / service msvsmon90

both / noauth and / anyuser are command line switches for msvsmon.

Filling in the "startup parameters" in the service properties window does not affect anything.

change binPath service to:

"c: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ Remote Debugger \ x86 \ msvsmon.exe" / service msvsmon90 / noauth / anyuser

also does not work (because the service does not start properly).

How to make the remote debug monitor work as a service in noauth and anyuser mode?

+5
source share
3 answers

Not sure if this will work for you, but have you tried using psexec (from sysinternals) to run msvsmon interactively in session 0?

The command line will be something like this (from an elevated command prompt):

psexec –sd –i 0 "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86\msvsmon.exe" /noauth /anyuser

- Windows.

+2

, , , ( btw /port: xxx , ).

, :

    psexec –sd –i 0 "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86\msvsmon.exe" /noauth /anyuser /port:4000 /nosecuritywarn
+1

Another useful switch is / nowowwarn, which suppresses warnings for the Win32 monitor on a 64-bit machine. For a complete list of all available switches, run \ msvsmon /?

0
source

All Articles