Debug a skill or skill consumer

APPLIES TO: SDK v4

You may need to debug a skill or skill consumer bot, where the one you want to debug is running locally and the other is running in the cloud. In this situation, you can use the Dev Tunnel tool to expose the local bot endpoint as a public URL.

Prerequisites

To debug a local skill consumer

In this scenario, you don't need to modify the configuration of the deployed skill and you can use the Bot Framework Emulator to test the consumer directly.

  1. Set up a tunneling endpoint for the local bot and configure its registration in the Azure portal as described in how to debug a bot from any channel using devtunnel.
  2. Update the consumer's application configuration, and set the skill host endpoint to the URL generated by Dev Tunnels.
  3. Finally, run the consumer locally and connect to it as described in how to debug with the Emulator.

Tip

The local consumer will need a valid app ID and password.

To debug a local skill bot

While you're testing changes to a skill, you may want to run and debug it locally while it's accessed from a consumer bot hosted on a staging server.

In this scenario, you need to modify the configuration of the deployed skill consumer, so you can use it to test the bot.

  1. Set up a tunneling endpoint for the local bot and configure its registration in the Azure portal as described in how to debug a bot from any channel using devtunnel.
  2. Update the consumer's application configuration, and set the skill endpoint to the URL generated by Dev Tunnels. You can either edit the configuration directly on the server or edit the configuration locally and redeploy the skill consumer.
  3. Run the skill locally and invoke it from the skill consumer.

Tip

The local skill will need a valid app ID and password.

Next steps

For more information about how to create skill and skill consumer bots, see: