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
- A subscription to Azure.
- DevTunnels installed.
- The Bot Framework Emulator installed.
- Knowledge of skills, how to debug a bot, how to debug a bot from any channel using devtunnel, and how to debug with the Emulator.
- Registered skill and skill consumer bots.
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.
- 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.
- Update the consumer's application configuration, and set the skill host endpoint to the URL generated by Dev Tunnels.
- 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.
- 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.
- 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.
- 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: