Better way to set outputDebug