doc: add guide for debug and troubleshoot