Reputation: 18869
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://learn.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:
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)
Anyone know what I'm doing wrong here? The steps in the Microsoft docs seem pretty straightforward.
Upvotes: 0
Views: 692
Reputation: 30665
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>
Upvotes: 0