doc: add debugging guide