How can we get plutus core dump from validator scripts?

unScript $ getValidator validator

https://plutus-pioneer-program.readthedocs.io/en/latest/pioneer/week2.html#before-we-start