ICAP debug script