go to great lengths
Short definition from Wiktionary
Verb
- To make a major effort; to be very careful when doing something, especially to an extreme or excessive degree.
We haven’t written up go to great lengths yet: Simple and Standard meanings, examples and a quiz.