Microsoft Bot Framework Dialog Debugger ExtensionThis extension adds a dialog debugger for debugging Bot Framework dialogs.
BackgroundBots are stateless web services made up of a graph of objects which a given conversation is executed over. This architecture provides a highly scalable stateless execution environment but makes it hard to debug because the bots conversation is stepping through the instance object graph of dialogs as opposed to raw code. Declarative .dialog files compound this, as the definition of your code moves to a declarative .json file. The Bot Framework Debugger works by allowing you to set breakpoints on the execution flow going through the instances of objects (either in source or .dialog files) and inspect the execution of your logic as it flows through dialogs which make up your application. Setting up Visual Studio Code to use the debuggerTo configure Visual Studio Code you need to add a target in your launch.settings file. You can do that by the add a configuration in the debug panel. There should be 2 configuration templates available:
Using
As you interact with the bot your breakpoint should hit and you should be able to inspect memory, call context, etc. TroubleshootingThere are 2 places your bot can be running depending on the tools you are using.
If you are switching between environments make sure you are talking to the right instance of your bot. |