Language:
Free Online Dictionary|3Dict

殚精极虑

Source : CEDICT

to exhaust one's thoughts and ingenuity (idiom); to think sth through thoroughly/to rack one's brains/to leave no stone unturned