inline doc for debug and memory