A smart method to discover problems with Mandarin sounds and tones

It’s often hard to assess one’s own pronunciation when learning Mandarin. People around you might understand what you are saying, but that doesn’t necessarily mean your tones are good. Simply asking people if your pronunciation is good won’t work either, because they will often tell you that your pronunciation is good even if it’s not. So how can you find out how good your pronunciation really is?