You may need to see your doctor if you have pain or swelling in your foot or ankle. A physical exam and x-rays can help diagnose the cause of your ankle pain. Your doctor will ask questions about your pain, like when it started and how it affects your daily life. He or she will…