write_debug writes in a Scratch buffer named '*debug*', so that debug messages are accessibles from within kakoune