Heart block can be diagnosed with an electrocardiogram (also called an ECG or an EKG). This is a painless test. During the test, pads are placed on a person's chest, arms, and legs. They record the heart's electrical activity.