[英]Unable to attach debugger from VS 2017 to Azure App Service for Web App Bot
I have deployed my Bot Framework v4 app as a Web App Bot to Azure. 我已经将Bot Framework v4应用程序作为Web App Bot部署到Azure。 I can connect to it in Web Chat in the Azure Portal, but it is crashing when I message it via Twilio.
我可以在Azure门户的Web聊天中连接到它,但是当我通过Twilio向它发送消息时,它崩溃了。
I am attempting to debug this, but when I try to attach via Visual Studio's Cloud Explorer I get the error in the screenshot. 我正在尝试调试它,但是当我尝试通过Visual Studio的Cloud Explorer进行附加时,在屏幕截图中出现了错误。 I have also tried attaching directly by using the username and password in my publish profile, but that always results in the breakpoints saying the symbols haven't been loaded once it is connected.
我也尝试过使用发布配置文件中的用户名和密码直接附加,但这总是会导致断点,表明连接后就没有加载符号。 When I look at the debug modules, I don't see any pertaining to my bot's dll.
当我查看调试模块时,没有看到与我的机器人的dll有关的任何内容。 This is with the publish profile set to the Debug configuration, so no issue with optimized code.
这是将发布配置文件设置为Debug配置的情况,因此优化代码没有问题。
Any suggestions are greatly appreciated! 任何建议,不胜感激!
I have seen this error during one of my attempts. 在一次尝试中,我已经看到此错误。 I ended up removing the current version of code from the web app by using the Kudu Console, restarting the app service and then publish again from VS using the publish profile.
我最终使用Kudu控制台从Web应用程序中删除了当前版本的代码,重新启动了应用程序服务,然后使用发布配置文件从VS重新发布。
Was able to make some progress on debugging by attaching to SITENAME.scm.azurewebsites.net instead of SITENAME.azurewebsites.net. 通过附加到SITENAME.scm.azurewebsites.net而不是SITENAME.azurewebsites.net,可以在调试方面取得一些进展。
Doesn't explain why Cloud Explorer still can't connect, but at least unblocks me for now 没有说明为什么Cloud Explorer仍然无法连接,但至少现在阻止了我
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.