Debugging co-routines / threading is a pain in any language. I'm a big believer in observability anyway so this isn't a leap. Nor is it the first time I did this very thing, but last time I had implemented a console and it was a console command. This is in a product written in Python which implements a DNS gateway for Redis: