debug script