{"modulePath":"github.com/dracory/nodebase","version":"v0.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debug\n\nPackage debug contains the debug node implementation.\n\n## Types\n\n```go\ntype DebugConfig struct {\n\t// Active toggles the node; false means deployed but muted (no events)\n\tActive *bool `json:\"active\"`\n\t// Console also prints the formatted value to stdout. Node-RED\n\t// serializes this as a string (\"false\") in some exports — flexBool\n\t// accepts both spellings.\n\tConsole flexBool `json:\"console\"`\n\t// Complete selects what is displayed: \"payload\" (Data only),\n\t// \"true\" (the whole payload including Metadata) or \"false\"\n\t// (a bare marker, Node-RED's \"node name only\" behaviour)\n\tComplete string `json:\"complete\"`\n\t// StatusVal is an optional property path whose value is also\n\t// reported as the node's status text (emitted as an extra event)\n\tStatusVal string `json:\"statusVal\"`\n\t// Tosidebar mirrors Node-RED: false suppresses the debug-panel\n\t// event entirely (console output is unaffected). Default true.\n\tTosidebar *flexBool `json:\"tosidebar\"`\n}\n```\nDebugConfig holds configuration for the debug node\n\n```go\ntype DebugNode struct {\n\t*nodebase.BaseNode\n\t// contains filtered or unexported fields\n}\n```\nDebugNode passes the payload through unchanged; the formatted debug value is emitted into the workflow event log by the host so it shows up in the editor's debug panel (Node-RED debug node)\n\n```go\nfunc NewDebugNode(node nodestore.NodeInterface, config *DebugConfig) *DebugNode\n```\nNewDebugNode creates a new debug node\n\n```go\nfunc (n *DebugNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)\n```\nExecute passes the input payload through unchanged\n\n```go\nfunc (n *DebugNode) PostRunEvents(node nodestore.NodeInterface, out nodestore.MessageInterface) []nodebase.RunEvent\n```\nPostRunEvents implements RunEventer: the debug node emits the formatted message value into the event log so it renders in the editor's debug panel; console=true also prints it to stdout, and a configured statusVal is reported as an extra \"status\" event. active=false mutes the node entirely.\n\n","path":"github.com/dracory/nodebase/debug","name":"debug","synopsis":"Package debug contains the debug node implementation.","isRedistributable":true}
