# \[Feature Request\] Move debug max chars into node settings

**URL:** <https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864>\
**Category:** Feature Requests\
**Tags:** debug\
**Created:** [24 January 2024 05:47 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864 "2024-01-24T05:47:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [24 January 2024 05:47 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864/1 "2024-01-24T05:47:02Z")

</div>

Following on from this thread: [https://discourse.nodered.org/t/http-request-bearer-token-truncated](https://discourse.nodered.org/t/http-request-bearer-token-truncated)

I would like to propose moving the max chars into the node settings it’s self.

Every so often, we get asked as to why messages are being truncated, only to explain to the end user to change debug settings in the settings file.

I think moving this setting, into the node setting its self, will remove these instances of confusion, as I believe this will highlight to the user why they might see a truncated message, which they can address without raising the concern in thinking the runtime is truncating data.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 January 2024 08:18 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864/2 "2024-01-24T08:18:55Z")

</div>

I believe we'd still get the same amount of questions, just different & much more ambiguous...

"Why is my browser really slow"

"Why is my browser tab crashing"

"Why sometimes do I get late/slow messages"

"Why does my CPU spike every do often"

Etc

All because they forgot they set it to 10000000 and a flurry of large messages came through.

* * *

I didn't mean to put a damper on the FR - it is an obvious and sensible (and desirable) request but I suspect the side effects may be worse?

I am 100% happy to be corrected here btw.

* * *

Perhaps instead, inside the debug node could have a form tip that spells out the limitation?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [24 January 2024 08:25 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864/3 "2024-01-24T08:25:30Z")

</div>

I agree on the concerns, an overlook on my part!

> [@Steve-Mcl](#):
>
> Perhaps instead, inside the debug node could have a form tip that spells out the limitation?

In favour of avoiding the examples you provided, having the debug node make clear reference to the defaults would seem a great happy medium!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 January 2024 08:35 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864/4 "2024-01-24T08:35:52Z")

</div>

World you be up for raising an issue please? Link back to this thread too

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [24 January 2024 08:57 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864/5 "2024-01-24T08:57:46Z")

</div>

> <https://github.com/node-red/node-red/issues/4542>
>
> \*\*WARNING\*\* : The most complicated FR below!
> 
> As per a conversation with Steve…:
> https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864
> 
> I originally suggested to move the max char setting, to the Node itself.
> whilst this has benefits, it has the potential for users to cause more performance issues for them self.
> 
> So,
> it was suggested to instead make a reference to the Max char defaults in the node (say a form tip), to remove the confusion with users wondering why their messages seem to be "not complete" and suggesting there is a problem with the runtime

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 March 2024 08:58 UTC](https://discourse.nodered.org/t/feature-request-move-debug-max-chars-into-node-settings/84864/6 "2024-03-24T08:58:26Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
