show useful technic to show debug message with preventing scope problem