I also find node.status extremely useful to display data beneath the function & debug nodes. See Node status : Node-RED
node.status