Enable a debugMode and display trace info only on debugMode