Function regorust::regoSetDebugEnabled

source ยท
pub unsafe extern "C" fn regoSetDebugEnabled(
    rego: *mut regoInterpreter,
    enabled: regoBoolean,
)
Expand description

Sets the debug mode of the interpreter.

When debug mode is enabled, the interpreter will output intermediary ASTs after each compiler pass to the debug directory and output pass information to stdout. This is mostly useful for creating reports for compiler issues, but can also be of use in understanding why a policy is invalid or is behaving unexpectedly.

@param rego The interpreter. @param enabled Whether debug mode should be enabled.