debugging medic