Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the current dialog stack from the bot framework's botbuilder (JavaScript)?

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?

like image 466
Ivor Zhou Avatar asked Dec 06 '25 00:12

Ivor Zhou


1 Answers

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);
like image 177
Ivor Zhou Avatar answered Dec 07 '25 17:12

Ivor Zhou