The debug script