update debug script