Reputation: 1273
I am building a chat bot with BotBuilder (Node version). I wish to print out the dialog stack for debug purpose. Is it possible to do that?
Upvotes: 3
Views: 1023
Reputation: 1273
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);
Upvotes: 4