[英]How to get the current dialog stack from the bot framework's botbuilder (JavaScript)?
I am building a chat bot with BotBuilder (Node version). 我正在使用BotBuilder(节点版本)构建聊天机器人。 I wish to print out the dialog stack for debug purpose. 我希望打印出对话框堆栈以进行调试。 Is it possible to do that? 有可能这样做吗?
I found the answer to my own question. 我找到了自己问题的答案。
After research on the source code, I found that we can print the call stack of a session by: 在研究源代码之后,我发现我们可以通过以下方式打印会话的调用堆栈:
console.log(session.dialogStack());
// or
console.log(session.sessionState.callstack);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.