I've been searching my hat off without any result, so a question for all of you guys:
I have a computer on domain A. On there I have a virtual machine running on domain B.
I've got visual studio installed on my computer but not on the vm => hence I want to debug a program running on the vm (domain B) which I've written in .NET with my visual studio installed on the pc (domain A).
When starting the vsmon program on the vm you have 2 options (windows auth. & no auth - native only).
When selecting no authentication, native only I get to see the processes in my visual studio and I can attach, but breakpoints are not being hit (because the PDB file does not contain native symbols, since it's written in .NET?)
When selecting windows authentication I can't connect and i get the error "logon failure"...
Any ideas / suggestions on this?
(btw, my firewall on the VM is turned off)
Set a breakpoint on the line you want to inspect in the debugger. The declaration of the PORT variable is an excellent place to start. Next, go to the Run and Debug menu in the sidebar and select Run script: start. This will execute the application in the remote environment and attach the Node debugger.
Press F5 to run the program in Debug mode. Another way to start debugging is by choosing Debug > Start Debugging from the menu. Enter a string in the console window when the program prompts for a name, and then press Enter . Program execution stops when it reaches the breakpoint and before the Console.
To debug . NET and ASP.NET Core source code in Visual Studio: In Tools -> Options -> Debugging -> General, un-check Enable Just My Code. Verify Enable Source Link support is checked.
To start debugging, select F5, or choose the Debug Target button in the Standard toolbar, or choose the Start Debugging button in the Debug toolbar, or choose Debug > Start Debugging from the menu bar. The app starts and the debugger runs to the line of code where you set the breakpoint.
You need to use remote debugging with windows authentication, because you want to debug a .NET application.
As to your authentication problem, please try this solution/workaround.
The main info in this link is the following:
net user username password /add
net localgroup administrators remotecomputername\username /add
runas /user:remotecomputername\username "<full path>\msvsmon.exe"
runas /user:localcomputername\username "<full path>\devenv.exe"
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