hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
105 stars 133 forks source link

Guardian policy embedded code testing/debugging facility for Custom Logic, Calculate, etc blocks #4304

Open anvabr opened 1 month ago

anvabr commented 1 month ago

Problem description

Currently when defining a chunk of a source code in, for example, the calculate block policy authors often find it difficult to detect logical or even syntax errors as there is no facility to debug, test run, view or at least print-out the values of the variables in the block. The only method of debugging provided by Guardian currently is to run the policy end-to-end, and try to identify issues from the logs/error codes. This is too time consuming and labor intensive.

Requirements

Definition of done

Acceptance criteria