Add a debugging switch for set_params.