简体   繁体   English

在Visual Studio中远程调试Azure Web应用程序时未达到断点

[英]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. 我的部署的Web应用程序出现问题,该问题不在本地发生,因此我想使用远程调试来查看发生了什么。

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 我正在按照此处概述的步骤进行操作: https : //docs.microsoft.com/zh-cn/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". 我的站点已经部署完毕,因此我只需在Server Explorer中右键单击该应用程序,然后选择“ Attach Debugger”。 My web app is launched, but none of my breakpoints are ever hit. 我的Web应用程序已启动,但没有遇到断点。

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? 不知道这是否重要,但我将配置设置为“本地调试”,但也许我需要以某种方式将其设置为“在Azure中调试”? (not sure how to do this) (不确定如何执行此操作)

在此处输入图片说明

Anyone know what I'm doing wrong here? 有人知道我在做什么错吗? The steps in the Microsoft docs seem pretty straightforward. Microsoft文档中的步骤似乎非常简单。

You need to deploy your application with Debug configuration rather than Release. 您需要使用Debug配置而不是Release部署应用程序。 For this open Properties => PublishProfiles => yourProfile.pubxml and find <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> and change it to <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> 为此,打开Properties => PublishProfiles => yourProfile.pubxml并找到<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>并将其更改为<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2022 for Mac 中未命中断点 - Breakpoints not being hit in Visual Studio 2022 for Mac Visual Studio 2012调试-在遇到项目/命名空间时停止 - Visual studio 2012 debugging - stop when the project/namespace is being hit 在 Visual Studio 远程调试中未命中断点 - Break point not hit in Visual Studio Remote Debugging 调试ASP.Net应用程序-跳过行和断点​​未命中 - Debugging ASP.Net app - skipping lines and breakpoints not being hit 调试使用WinForms应用程序时不会击中.net核心库中的断点 - Breakpoints in .net core library will not be hit when debugging consuming WinForms app 在Visual Studio 2013中进行调试时附加Microsoft Word进程后无法达到断点 - Unable to hit the breakpoints after attaching the Microsoft Word process while debugging in Visual Studio 2013 调试时未击中断点,Outlook Add in - Breakpoints are not hit when debugging, Outlook Add in Visual Studio Code 不会在调试断点处停止 - Visual Studio Code doesnt stop at breakpoints on debugging 通过NUnit GUI 0.60运行测试时如何使Visual Studio 2017达到断点? - How to make Visual Studio 2017 hit breakpoints when running tests through NUnit GUI 0.60? 在Visual Studio 2008中远程调试ASP.NET Web服务 - Remote debugging ASP.NET Web Service in Visual Studio 2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM