📜 ⬆️ ⬇️

Remote debugging of web applications in the cloud with Visual Studio 2013

image

With the release of the Windows Azure SDK 2.2 tools, developers of cloud applications and Windows Azure services have received an excellent extension of the capabilities of Visual Studio 2013, which allows you to debug code remotely directly from the cloud. Remote debugging of applications is available for both cloud services (Cloud Services) and websites (Windows Azure Web Sites).

Consider how a developer can use the new remote debugging features to develop Windows Azure applications. To begin, we need Visual Studio 2013 RTM with the Windows Azure SDK for .NET 2.2 installed. Visual Studio 2013 should already be bound to a Windows Azure subscription.

Suppose that we have a project RemoteDebugSample, which we publish in Windows Azure Web Sites with the same name. Note that for remote debugging when publishing a project to Windows Azure, you may need to set the project configuration in Debug (Release is offered by default).
')
image

Set a breakpoint on any part of our code in Visual Studio 2013.

image

Go to Server Explorer on the Web Sites tab and select our website. Right-click on the context menu and select the Attach Debugger item.

image

After a few seconds, after updating the settings of the remote website and launching a new session of the application in your browser, you can start debugging the application located in the cloud as if it is running locally.

image

That's all! In the same way, the debugging of the Web and Worker roles of cloud services is performed. When publishing to Cloud Services, do not forget to set the “Enable Remote Debugger for all Roles” option.

image

Enjoy your development!

useful links


Below you will find links to resources that will help you in using the Microsoft cloud platform:


And if you are already developing on Windows Azure or want to find the developers of your service, visit appprofessionals.ru .

We will be happy to answer your questions at azurerus@microsoft.com . And we are waiting for you in the Windows Azure Community on Facebook . Here you will find experts (don't forget to ask them questions), photos, and lots and lots of news.

Source: https://habr.com/ru/post/200852/


All Articles