Talk to your doctor about sexual dysfunction and don't be ashamed to ask questions. To diagnose your condition, your doctor will ask you a number of questions about your sexual activity in order to determine the source of your erectile dysfunction.