Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Quickstart for debugging Sanic

A sample application for debugging Python Sanic apps using Rookout.

Before following this guide we recommend reading the basic Python + Rookout guide.

Running Sanic Server with Rookout

  1. Clone and install dependencies:
   git clone
   cd deployment-examples/python-sonic
   pip3 install -r requirements.txt
  1. Export organization token:
	export ROOKOUT_TOKEN=<Your Rookout Token>
  1. Run the sanic server:
    #start the server (default: http://localhost:5000)
  1. Have fun debugging: Go to and start debugging :)

Rookout Integration explained

  1. When running number of workers that handle requests in parallel, we need to import rook for each process.
    async def load_rookout():
    	from rook import auto_start
You can’t perform that action at this time.