The debug function.