When working on the fulltext indexing for the Elasticsearch integration for Neos I recently needed a way to debug what was going on inside a Groovy script we use. It's relatively simple, if you know how…