简体   繁体   中英

Breakpoints not being hit when remote debugging Azure web app in Visual Studio

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:

在此处输入图片说明

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.

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM