debugging ec