be all somebody can/could do to do something

be all somebody can/could ˈdo (not) to do something

(informal) be very difficult (not) to do something: His face looked so funny that it was all she could do not to laugh.