extract debug function