# Function status - a plea likely to be treated with scorn

**URL:** <https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259>\
**Category:** General\
**Created:** [13 August 2018 20:51 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259 "2018-08-13T20:51:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [13 August 2018 20:51 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/1 "2018-08-13T20:51:15Z")

</div>

Increasingly I find myself using the status display in the function node to display info when developing - mainly because I want the info on one screen and the debug tab is busy with bugs and other items. The "text" item in the function node is great but for me would be better if I could use   
 to break the output up over a couple of lines... if instead of keyword text I could use keyword html, I could do that and more (like choosing text colour or bold etc). I realise this is likely to be considered heresy but shy bairns get nowt as we say in Northumberland.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [13 August 2018 21:05 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/2 "2018-08-13T21:05:40Z")

</div>

Well, at least you are not alone...

[https://groups.google.com/forum/#!topicsearchin/node-red/status$20AND$20author$3Ame/node-red/y69PkTHmMc4](https://groups.google.com/forum/#!topicsearchin/node-red/status%2420AND%2420author%243Ame/node-red/y69PkTHmMc4)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [13 August 2018 21:26 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/3 "2018-08-13T21:26:37Z")

</div>

Always worth an ask... but no - the editor is still not a dashboard 🙂

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [13 August 2018 21:55 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/4 "2018-08-13T21:55:20Z")

</div>

I treat the dashboard as something for an end user - and thanks to the RGB node not being very good - still end up using Blynk. Neither are of any use when you are sitting developing stuff and the debug console is way too general. Well, I tried.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [13 August 2018 22:03 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/5 "2018-08-13T22:03:44Z")

</div>

@scargill as you can see this isn't the first time this has come up. It isn't something we plan to do as it risks becoming unmanageable if nodes start to abuse it.

But we do hear the feedback - so whilst this particular solution may not be the _right_ one from our perspective, we do acknowledge there's a gap here that the current Debug sidebar doesn't satisfy. So whether there's something within the bounds of the Debug node and sidebar that could be done here would be worth exploring.

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [13 August 2018 22:22 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/6 "2018-08-13T22:22:30Z")

</div>

Thanks Nick. To me, dashboard is for watching when you are done developing - or for some permitted person to watch without fear of them messing up the code. For me as the developer, I'm looking to be able to monitor stuff and perhaps tinker. Debug does that but crudely. Function node is the alternative but would be helped by some formatting. I know I'm onto a loser here but I can but try.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 August 2018 23:22 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/7 "2018-08-13T23:22:25Z")

</div>

> [@scargill](#):
>
> Thanks Nick. To me, dashboard is for watching when you are done developing - or for some permitted person to watch without fear of them messing up the code. For me as the developer, I'm looking to be able to monitor stuff and perhaps tinker. Debug does that but crudely. Function node is the alternative but would be helped by some formatting. I know I'm onto a loser here but I can but try.

In the past, I've created my own debug output web page for this.

Also, my own nodes have a variety of debug logging levels and I use Winston if I need to separate out the node's logs from Node-RED's log (which I typically do for more complex nodes). Use tail or a good IDE to be able to continuously view updates to the log files.

Finally, there is the ability to use something like VScode's debugging tools as I've indicated in the past. This lets you pause a running Node-RED session and lets you dig into the function chain and examine variables in-flight - great when you have to debug someone elses node.

---

<div class="post-metadata">

**Author:** ![dustinw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dustinw/32/3426_2.png) [@dustinw](https://discourse.nodered.org/u/dustinw)\
**Post date:** [16 August 2018 19:26 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/8 "2018-08-16T19:26:26Z")

</div>

A suggestion to consider... add an optional **_detail_** parameter to the status object (or what ever name makes sense), and if the detail parameter is there ... treat it as hover pop-up on the status (or show a more icon that opens up the details or what ever works best in the context of the UI)

```auto
this.status({
  fill:"green",
  shape:"dot",
  text:"connected", 
  detail:"Connected to <a href='serverx'>serverx</a>, at <b>2:43</b> via protocal yyy"
});

```

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [23 August 2018 22:46 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/9 "2018-08-23T22:46:58Z")

</div>

Now you remind me, yes I remember (not well enough) your debug pages... I'm looking for something to use while looking at and modifying my flows, pref in the same page, I like DustinW's idea, LOVE it in fact. Those who don't want this could ignore "detail"

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 August 2018 16:05 UTC](https://discourse.nodered.org/t/function-status-a-plea-likely-to-be-treated-with-scorn/2259/10 "2018-08-24T16:05:47Z")

</div>

> [@scargill](#):
>
> Now you remind me, yes I remember (not well enough) your debug pages... I'm looking for something to use while looking at and modifying my flows, pref in the same page, I like DustinW's idea, LOVE it in fact. Those who don't want this could ignore "detail"

Not necessarily against Dustin's idea though it does introduce further scope creep on the status feature. We should also remember that most Node-RED users aren't node developers.

Anyway, I would anticipate that Nick probably has a lot of things on the backlog so you might want to use something that already works.
