diff --git a/v2/pkg/operators/common/dsl/dsl.go b/v2/pkg/operators/common/dsl/dsl.go index 8116ef13..e6b7aaa0 100644 --- a/v2/pkg/operators/common/dsl/dsl.go +++ b/v2/pkg/operators/common/dsl/dsl.go @@ -245,6 +245,11 @@ var functions = map[string]govaluate.ExpressionFunction{ data := deserialization.GenerateJavaGadget(gadget, cmd, encoding) return data, nil }, + // for debug purposes + "print_stdout": func(args ...interface{}) (interface{}, error) { + fmt.Println(args) + return true, nil + }, } // HelperFunctions returns the dsl helper functions