Allow debug output writer to be set.