Debug script