To act as a detective; to try to discover who committed a crime, or, more generally, to solve a mystery.