docs: Add debug document

* Start of something useful, maybe.