[imp] [32982] Skip the debug plugin if debug is off
Fix #2691