Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure: Cannot connect to remote debugger

I want to use Remote Debugger in Visual Studio 2015 to attach to my site. When I try "Attach Debugger" the azure return: The following error occurred while launching remote debugging: Unable to connect to the Microsoft Visual Studio Remote Debugger name 'XXXX'. Windows authentication was unable to establish a secure connection to the remote computer.

In azure portal I set remote debugging and select VS 2015.

like image 852
piotrbalut Avatar asked Dec 06 '22 20:12

piotrbalut


2 Answers

These errors might be related to Local Policies > Security Options > Network Security: LAN manager authentication level. It needs to be set to “Send NTLMV2 response only”. Once this is set then the PC was able to open RemoteApp applications without problems.

To set local policies go to command prompt and type secpol.msc or Administrative Tools > Local Security Policy

like image 72
mydevexperience Avatar answered Dec 09 '22 14:12

mydevexperience


Maybe your application is not enabled to use remote debugger.

To enable remote debugger in app service:

  1. Go to Azure management portal
  2. Select your app
  3. Go to settings
  4. Go to Debugging
  5. Enable Remote Debugging
  6. Select your visual studio debugger versión
like image 29
Juan Amador Avatar answered Dec 09 '22 14:12

Juan Amador