elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
865 stars 24.8k forks source link

Painless variable visibility in debug mode #49876

Open stu-elastic opened 4 years ago

stu-elastic commented 4 years ago

Add the ability to capture variable values when running a painless script in debug mode. We can annotate the captured data per line and per iteration as well as limit the amount of captured data via a bounded buffer.

This allows us to provide break-point like functionality (add a dot to capture data at a given point) without the difficulty of implementing pausing and resuming painless script execution.

Migrated from: https://github.com/elastic/elasticsearch/issues/31009

elasticmachine commented 4 years ago

Pinging @elastic/es-core-infra (:Core/Infra/Scripting)