Tools
The Tools tab in the Extension Editor shows what calls have been made to the Command AI SDK during your session. If you're trying to understand why Command AI isn't working as you expect during development, use the debugger to see if errant SDK calls are being made.
Common debugging scenarios
Here are some common situations in which the Debugger tab can come in handy:
- An action or page is unavailable in Spotlight: Make sure calls that supply dependencies (e.g.
window.CommandBar.addMetadata
andwindow.CommandBar.addCallback
) are firing as expected. - An action is behaving weirdly: Make sure calls contain the right arguments. You inspect the arguments passed to SDK methods from the debugger by clicking on the plus button.
- Command AI seems slow: make sure you aren't calling any Command AI SDK calls in loops or in render functions.