Implement the debug print callback