# Extra Debugging node

**URL:** <https://discourse.nodered.org/t/extra-debugging-node/82649>\
**Category:** Share Your Projects\
**Created:** [6 November 2023 12:53 UTC](https://discourse.nodered.org/t/extra-debugging-node/82649 "2023-11-06T12:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 November 2023 12:53 UTC](https://discourse.nodered.org/t/extra-debugging-node/82649/1 "2023-11-06T12:53:57Z")

</div>

So, sometimes I just want to send a simple text message to the debug so I use a little debug node  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/7/479ee9333f00b88e3e8159ad1cb2d0997b86bc3e.png)

But when you attach them - they take up more room than I'd like  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/d/cd3f70220703bf510b9c9421e6d06b4dc53f62d6.png)

so then I started putting them inline  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/59217f3013cb25959c7270230e6d7c94049c460a.png)

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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c219b8a33054e44e660260d41447c8e5d298fc5f.png)

Uses environment variable  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/2506797f7f34564054e971fa617bc250b4f05b47.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/662108dab1e2cd3c987aa5d2cb91ab4368695fe0.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55ac720ed92c0b5c426be54a76e21dcd347355fa.png)

Here's the subflow if anyone is interested

```auto
[{"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":[[]]}]

```
