icfnext / aem-groovy-console

The AEM Groovy Console provides an interface for running Groovy scripts in the AEM container. Scripts can be created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the CQ, Sling, or JCR APIs.
Other
159 stars 94 forks source link

Show output up to the point when an error is thrown. #76

Closed paul-bjorkstrand closed 5 years ago

paul-bjorkstrand commented 6 years ago

This is extremely helpful when troubleshooting problems with a script. Currently, you get no output, and just the stacktrace. This shows any output that has been captured, up to when the exception was thrown.

  1. Output is displayed first (before stacktrace)
  2. Output is stored for audit records
  3. Output is retrieved for audit records
  4. Output is available in error emails
paul-bjorkstrand commented 6 years ago

I also have a backport branch for the 11.X.X version in this branch: https://github.com/paul-bjorkstrand/cq-groovy-console/tree/feature/show-output-on-error-11.X.X

ahmed-musallam commented 6 years ago

+1