Sunday, March 27, 2016

Remote debugging Azure Web Sites With Visual Studio

When I want to debug Azure Web Sites using Visual Studio, I got a login dialog window message that "visual studio 2015 enter your credentials for azure websites"


Then I found the below site where instructions has been given how to remote authenticate into VS for debugging Azure Web Sites

Remote Debugging Azure Web Sites

The below contents are taken from the above site

You can also remotely debug your Windows Azure Web Site with Visual Studio 2012, but you’ll need to configure a few things manually for now. We are working to bring the same experience for remote debugging to Visual Studio 2012 but we are not there yet. For now you can use the steps below for Visual Studio 2012.
  1. In the Windows Azure Management Portal, go to the Configure tab for your web site, and then scroll down to the Site Diagnostics section
  2. Set Remote Debugging to On, and set Remote Debugging Visual Studio Version to 2012 
image
  1. In the Visual Studio Debug menu, click Attach to Process
  2. In the Qualifier box, enter the URL for your web site, without the http:// prefix
  3. Select Show processes from all users
  4. When you’re prompted for credentials, enter the user name and password that has permissions to publish the web site. To get these credentials, go to the Dashboard tab for your web site in the management portal and click Download the publish profile. Open the file in a text editor, and you’ll find the user name and password after the first occurrences of userName= and userPWD=.
  5. When the processes appear in the Available Processes table, select w3wp.exe, and then click Attach.
  6. Open a browser to your site URL.
    • You might have to wait 20 seconds or so while Windows Azure sets up the server for debugging. This delay only happens the first time you run in debug mode on a web site. Subsequent times within the next 48 hours when you start debugging again there won’t be a delay.

No comments:

Post a Comment