was hast du dir dabei gedacht?

listen to the pronunciation of was hast du dir dabei gedacht?
Deutsch - Englisch
What were you thinking of?