[英]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.