Is There an easy way to validate/compile painless scripts

I have a groovy script that I want to migrate to painless and after migrate was completed I want to validate/compile this script so is there an easy way to do this

Hi @Andres_Benavides,

There is some documentation on Painless Debugging.

perfect thanks!