I'm a bit confused about the usage of You don't say. Sometimes it seems to be an expression of agreeing; other times it may just show surprise. Could any native English speaker do me a favor by listing all the possible meanings of this phrase and give examples? Thank you!

Language (The language you are writing in)