Scare the pants off (someone)

To frighten someone very badly.

The big dog scared the pants off the little boy.