Extra Debugging node

So, sometimes I just want to send a simple text message to the debug so I use a little debug node
image

But when you attach them - they take up more room than I'd like
image

so then I started putting them inline
image

but that's not good NR practice

So I've made a subflow - and I'm quite liking it myself (but then again - I would)
image

Uses environment variable
image

image

image

Here's the subflow if anyone is interested

[{"id":"b6a54a9a9daab266","type":"subflow","name":"sendToDebugSidebar","info":"","category":"","in":[{"x":60,"y":80,"wires":[{"id":"ca323ca5c16a2807"}]}],"out":[{"x":200,"y":80,"wires":[{"id":"b6a54a9a9daab266","port":0}]}],"env":[{"name":"debugText","type":"str","value":"this is debug text"}],"meta":{},"color":"#AAAA66","icon":"node-red/debug.svg"},{"id":"ca323ca5c16a2807","type":"debug","z":"b6a54a9a9daab266","name":"debugText","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$env(\"debugText\")","targetType":"jsonata","statusVal":"","statusType":"auto","x":125,"y":40,"wires":[],"l":false},{"id":"055f61fd5704945e","type":"subflow:b6a54a9a9daab266","z":"f7546f055375d300","name":"","x":760,"y":140,"wires":[[]]}]
4 Likes