To diagnose a problem with sweating and body odor, your doctor will likely ask about your medical history and do an exam. The doctor may test your blood or urine. The tests can show if your problem is caused by a medical condition, such as an infection, diabetes or an overactive thyroid (hyperthyroidism).