Added debug output to the common framework so that each sample enable it