Implement a little debug function