add documentation for debug