简体   繁体   English

如何使用 Visual Studio 中的路径映射将调试器附加到 Azure 应用服务?

[英]How to attach a debugger to Azure App Service with path mapping in Visual Studio?

I have an Azure App Service called xxx, and I deployed a asp.net core project to path: xxx/api, I want to attach a remote debugger to xxx/api other than xxx to help me test a remote workflow.我有一个名为xxx的Azure应用服务,我部署了一个asp.net核心项目到路径:xxx/api,我想在xxx/api上附加一个远程调试器来帮助我测试远程工作流。 How can I achieve this in visual studio?如何在 Visual Studio 中实现这一目标?

If I just click the app service in cloud explorer and click "Attach debugger", The debug did start but my breakpoints can't be fired.如果我只是在云资源管理器中单击应用程序服务并单击“附加调试器”,则调试确实开始了,但无法触发我的断点。 It says there is no symbol to attach to.它说没有要附加的符号。

I've checked with my app service and the "Remote Debugging" is on.我已经检查了我的应用服务,并且“远程调试”已开启。

Just guessing here, but make sure you've deployed a debug build and not a release build.只是在这里猜测,但请确保您已经部署了调试版本而不是发布版本。 You won't be able to attach to a release build.您将无法附加到发布版本。

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

相关问题 如何在Visual Studio 2017中将调试器附加到Azure Web应用程序? - How do I attach the debugger to an Azure web app in Visual Studio 2017? 将visual studio调试器附加到电子应用程序 - Attach visual studio debugger to electron app Visual Studio 调试器不会自动附加到本地 Service Fabric 服务 - Visual Studio Debugger does not automatically attach to local Service Fabric Service 在Visual Studio 2015中附加调试器不适用于Azure网站 - Attach debugger not working for Azure Websites in visual studio 2015 如何让Visual Studio自动将其调试器附加到Web应用程序和Web服务? - How can I make Visual Studio automatically attach its debugger to both a web application and web service? 无法将调试程序附加到Azure Web服务聊天机器人应用程序 - Cannot attach debugger to Azure Web Service chatbot app 如何将 Visual Studio 调试器附加到动态加载的进程? - How to attach Visual Studio debugger to a process that loads dynamically? 如何将Visual Studio 2019 debbuger连接到统一调试器? - How to attach Visual Studio 2019 debbuger to unity debugger? 如何在 Visual Studio 中将进程附加到调试器? - How do I attach a process to the debugger in Visual Studio? Visual Studio - 以编程方式将调试器附加到远程进程 - Visual studio - Attach debugger to remote process - programatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM