Skip to content

Instantly share code, notes, and snippets.

@ram-xv
Last active October 5, 2023 04:36
Show Gist options
  • Select an option

  • Save ram-xv/9d8de81608f10c28ea5d5a03d22a2b5b to your computer and use it in GitHub Desktop.

Select an option

Save ram-xv/9d8de81608f10c28ea5d5a03d22a2b5b to your computer and use it in GitHub Desktop.
Run Composer in debug mode

Windows

To enable and run Composer in debug mode for a more detailed analysis of its operations, carefully follow these step-by-step instructions provided below.

  1. Completely close Composer if already open
  2. Go to Composer's install location (mine is at C:\Users{username}\AppData\Local\Programs\Bot Framework Composer)
  3. Open a terminal in that directory (On Windows, CMD terminal seems to work best)
  4. run set DEBUG=composer*
  5. In that same terminal after step 4, run the Composer executable from the terminal.
    • Ex: in Windows command prompt: run "Bot Framework Composer.exe"

Important: You have enabled debugging successfully if you see prefixed composer:____ in the log:

image

Mac

  1. Completely close Composer if already open.
    • Ensure that the Composer application is fully closed.
  1. Go to Composer's install location on your Mac.
    • The install location on Mac might be different from Windows. Typically, applications on Mac are located in the /Applications directory. If you've installed it elsewhere, navigate to that location.
  2. Open a terminal. You can do this by pressing Cmd + Space to open Spotlight and then typing "Terminal" and pressing Enter.
  3. Navigate to the Composer's directory in the terminal.
    cd /Applications/Bot\ Framework\ Composer.app/Contents/MacOS/ 
    
  4. Set the DEBUG environment variable.
    export DEBUG=composer*
    
  5. Run the executable from the terminal.
    • On Mac, the executable might not have the .exe extension as it does on Windows. Instead, it might just be called "Bot Framework Composer" or something similar.
    ./Bot\ Framework\ Composer
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment