Book Image

Learning Microsoft Azure

By : Geoff Webber Cross, Geoff Webber-Cross
Book Image

Learning Microsoft Azure

By: Geoff Webber Cross, Geoff Webber-Cross

Overview of this book

Table of Contents (19 chapters)
Learning Microsoft Azure
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Remote debugging


Azure websites have great remote debugging support integrated into Visual Studio; we can enable remote debugging in the portal, and then attach the debugger through Server Explorer. Unfortunately, this is not supported in Visual Studio Express, so I will use Visual Studio 2013 Ultimate to demonstrate it (Premium and Professional are fine too). To start remote debugging, use the following procedure:

  1. Make sure the website is deployed in the Debug configuration because the Release configuration is optimized and cannot be debugged. If the website is not deployed in the Debug configuration, you will see an error message like this:

  2. To publish the website in the Debug configuration, change the Configuration setting under the Settings tab in the Publish Web dialog before publishing:

  3. In the Azure portal, go to the CONFIGURATION tab in our website workspace, scroll down to the site diagnostics section, enable REMOTE DEBUGGING, and set REMOTE DEBUGGING VISUAL STUDIO VERSION to 2013:

  4. Notice...