0
votes

I'm having an issue with my deployed web app that's not occurring locally, so I wanted to use remote debugging to see what's going on.

I'm following the steps outlined here: https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging-azure?view=vs-2017#remote_debug_azure_app_service

My site is already deployed, so I just right-clicked the app in Server Explorer and selected "Attach Debugger". My web app is launched, but none of my breakpoints are ever hit.

I have remote debugging enabled on my app:

enter image description here

Not sure if it matters, but I set my configuration to Debug locally, but maybe I need to somehow set it to Debug in Azure? (not sure how to do this)

enter image description here

Anyone know what I'm doing wrong here? The steps in the Microsoft docs seem pretty straightforward.

1
is your remote app deployed with Debug build? Release configuration on publish won't work for debugging - Derviş Kayımbaşıoğlu
@Simonare I don't believe so. How can I change that? If I change the configuration of my project to Debug and rebuild, there's no changes detected to check into source control - Steven

1 Answers

0
votes

You need to deploy your application with Debug configuration rather than Release. For this open Properties => PublishProfiles => yourProfile.pubxml and find <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> and change it to <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>