dān​jīng​jí​lǜ

to rack one's brains