简体   繁体   English

如何调试在 Microsoft Teams 上运行的 Bot Framework BOT

[英]How to debug a Bot Framework BOT running on Microsoft Teams

I uploaded a BOT in Microsoft Teams, but for some reason, it behaves different than other channels.我在 Microsoft Teams 中上传了一个 BOT,但出于某种原因,它的行为与其他渠道不同。 The bot wont understand my input, and LUIS would return none intent.机器人不会理解我的输入,并且 LUIS 不会返回任何意图。

In other channels it works well, as well in the BOT Emulator.在其他渠道中它运作良好,在 BOT 模拟器中也是如此。

This appear to be MS documentation about it, but it doesn't really explain what I need. 似乎是关于它的 MS 文档,但它并没有真正解释我需要什么。

There's a way for me to debug the BOT running on Microsoft Teams??我有办法调试在 Microsoft Teams 上运行的 BOT?

Please!请! Thank you!谢谢!

Ngrok is a good tool for setting up your bot on azure and debugging locally. Ngrok是在 Azure 上设置机器人并在本地调试的好工具。 This will help to find issues as you can walk through your code as described here to see where specifically your code is breaking.这将有助于发现问题,因为您可以按照此处所述遍历您的代码,以查看您的代码具体在哪里出错。

The problem with LUIS using Microsoft Teams was that the activity receive the message in HTML.使用 Microsoft Teams 的 LUIS 的问题是活动以 HTML 格式接收消息。 I found this SO question that helped me eliminate the HTML tags.我发现这个 SO 问题帮助我消除了 HTML 标签。 On the other hand, Ngrok is the tool needed to accomplish remote debugging, and this blog describe the steps very well.另一方面,Ngrok 是完成远程调试所需要的工具, 这篇博客对步骤进行了很好的描述。

Please also look at Jmeter with另请查看 Jmeter

BotServiceStressToolkit BotServiceStressToolkit

Which allows you to do some testing without Ngrok directly to your IIS Express instance while debugging.这允许您在调试时无需 Ngrok 直接对您的 IIS Express 实例进行一些测试。

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

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