cap debugging