Minor optimization to disable tracing debug tools if debug mode is disabled.