Doctors can potentially see stool backup on an X-ray. X-rays are generally poor at diagnosing constipation and offer little benefit over a simple review of your medical history and physical exam.