殚精极虑

繁体殫精極慮

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