如何调试反向通道

时间:2018-03-07 00:04:08

标签: c# botframework ngrok direct-line-botframework

我正在关注此切换样本:https://github.com/ankitbko/human-handoff-bot

我想通过代码进行调试,看看代理的“连接”按钮是如何工作的 - 看看它如何将代理添加到池中(因为我总是收到消息All our customer care representatives are busy at the moment. Please try after some time.)。

我按照指示进行了ngrok设置: using command ngrok.exe http --host-header=rewrite <port number>

我有Agent UI工作,我从UI看到我已连接,但我从未输入我的代码断点。当我尝试更新消息时,我发现它总是显示我发布的内容,而不是我本地的内容。我假设我总是连接到已发布的僵尸程序,而不是我在本地运行的程序...如何调试本地代理程序代码?

1 个答案:

答案 0 :(得分:1)

您是否更改了机器人注册的消息传递端点?

此博客文章可能会有所帮助:https://blog.botframework.com/2017/10/19/debug-channel-locally-using-ngrok/