# Debug node: option to have "complete msg object" as default

**URL:** <https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153>\
**Category:** Feature Requests\
**Created:** [18 November 2020 16:53 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153 "2020-11-18T16:53:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [18 November 2020 16:53 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/1 "2020-11-18T16:53:29Z")

</div>

When creating a new debug node, the default ist "msg.payload". It would be nice to have somewhere an option that for a project or for my workspace "complete msg object" is the default.

In most case I need the whole object.

---

<div class="post-metadata">

**Author:** ![softy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/softy2k/32/23707_2.png) [@softy2k](https://discourse.nodered.org/u/softy2k)\
**Post date:** [18 November 2020 19:27 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/2 "2020-11-18T19:27:26Z")

</div>

Totally agree...

---

<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 2020 19:33 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/3 "2020-11-18T19:33:10Z")

</div>

This came up in another thread just yesterday.

As it stands we have no way of setting user-defined defaults for a node. I agree there are cases where it would be useful - but will require some thought as to how to do it properly.

---

<div class="post-metadata">

**Author:** ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)\
**Post date:** [18 November 2020 21:00 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/4 "2020-11-18T21:00:50Z")

</div>

I spent some time thinking about that

> [@Debug node output -- show complete message options](https://discourse.nodered.org/t/debug-node-output-show-complete-message-options/26577):
>
> Hi, The default output of the debug node is to show msg.payload in the sidebar. The first thing I usually do after dragging a debug node into the canvas is to edit it to show the complete message object. While this allows to see more than the payload, it also has the disadvantage of showing the message id, which can be distracting. There might be a JSONata expression which does that, but it is not really convenient to configure that all the time. Some ideas: The debug node shows the messag…

In my install, I also sort the keys alphabetically and move every key that starts with "\_" to the end.

---

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [19 November 2020 08:32 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/5 "2020-11-19T08:32:38Z")

</div>

I created a subflow with debug node (complete msg) and one input.  
It seems to work. Have to test it more, but could be a work around for me.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 November 2020 08:51 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/6 "2020-11-19T08:51:16Z")

</div>

Won't all the instances have the same node name in the debug output?

---

<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:** [19 November 2020 09:38 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/7 "2020-11-19T09:38:33Z")

</div>

Not if you use Subflow Env properties to set the Debug node's name. You can then name each subflow instance as you would normally - and the debug node will pick it up.

---

<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:** [18 January 2021 09:38 UTC](https://discourse.nodered.org/t/debug-node-option-to-have-complete-msg-object-as-default/36153/8 "2021-01-18T09:38:34Z")

</div>

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