# Is There an easy way to validate/compile painless scripts

**URL:** <https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091>\
**Category:** Elasticsearch\
**Created:** [September 26, 2018, 9:24pm UTC](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091 "2018-09-26T21:24:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andres\_Benavides](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andres_benavides/32/12415_2.png) [@Andres\_Benavides](https://discuss.elastic.co/u/Andres_Benavides)\
**Post date:** [September 26, 2018, 9:24pm UTC](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091/1 "2018-09-26T21:24:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fkelbert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fkelbert/32/35762_2.png) [@fkelbert](https://discuss.elastic.co/u/fkelbert)\
**Post date:** [September 27, 2018, 1:31pm UTC](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091/2 "2018-09-27T13:31:45Z")

</div>

Hi @Andres_Benavides,

There is some documentation on [Painless Debugging](https://www.elastic.co/guide/en/elasticsearch/painless/6.4/painless-debugging.html).

---

<div class="post-metadata">

**Author:** ![Andres\_Benavides](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andres_benavides/32/12415_2.png) [@Andres\_Benavides](https://discuss.elastic.co/u/Andres_Benavides)\
**Post date:** [September 28, 2018, 1:26pm UTC](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091/3 "2018-09-28T13:26:57Z")

</div>

perfect thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 26, 2018, 1:26pm UTC](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091/4 "2018-10-26T13:26:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
