# Auto-Name Debug Node with some serialization, with an option to override the name

**URL:** <https://discourse.nodered.org/t/auto-name-debug-node-with-some-serialization-with-an-option-to-override-the-name/53926>\
**Category:** Feature Requests\
**Created:** [18 November 2021 10:06 UTC](https://discourse.nodered.org/t/auto-name-debug-node-with-some-serialization-with-an-option-to-override-the-name/53926 "2021-11-18T10:06:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [18 November 2021 10:06 UTC](https://discourse.nodered.org/t/auto-name-debug-node-with-some-serialization-with-an-option-to-override-the-name/53926/1 "2021-11-18T10:06:36Z")

</div>

When a debug node is drawn to the editor panel, it should automatically give a unique name to the Debug node like Debug 1, Debug 2, Debug 3, etc. instead of msg.payload for every debug node. (Similar to excel creating different worksheets with sheet1, sheet2 etc). if the user wants, he will rename the debug node to whatever he likes.

---

<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:** [18 November 2021 11:26 UTC](https://discourse.nodered.org/t/auto-name-debug-node-with-some-serialization-with-an-option-to-override-the-name/53926/2 "2021-11-18T11:26:11Z")

</div>

This is quite a good idea. It is true that having lots of debug nodes with the default `msg.payload` label doesn't really help matters.

The missing part at the moment is we don't have a way to set a node's property dynamically when it is added to the workspace - it can only be set to the hardcoded default value. So we would need to introduce a way of doing that in the core.

I'll add this to the backlog and we can take a proper look at it for 2.2.

---

<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:** [18 November 2021 13:36 UTC](https://discourse.nodered.org/t/auto-name-debug-node-with-some-serialization-with-an-option-to-override-the-name/53926/3 "2021-11-18T13:36:17Z")

</div>

> [@knolleary](#):
>
> set a node's property dynamically when it is added to the workspace

I'd like that for other purposes as well 😀

It would fix my knotty problem when copy/pasting uibuilder nodes since the url needs to be unique and it would be nice to enforce this.

---

<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:** [17 January 2022 13:36 UTC](https://discourse.nodered.org/t/auto-name-debug-node-with-some-serialization-with-an-option-to-override-the-name/53926/4 "2022-01-17T13:36:43Z")

</div>

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