Language:
Free Online Dictionary|3Dict

費盡心思

Source : CEDICT

to rack one's brains (idiom); to take great pains to think sth through