Create debug print mechanism