# Debug Panel "\[object Object\]"

**URL:** <https://discourse.nodered.org/t/debug-panel-object-object/89271>\
**Category:** General\
**Created:** [4 July 2024 20:30 UTC](https://discourse.nodered.org/t/debug-panel-object-object/89271 "2024-07-04T20:30:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmichaeltx](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tmichaeltx](https://discourse.nodered.org/u/tmichaeltx)\
**Post date:** [4 July 2024 20:30 UTC](https://discourse.nodered.org/t/debug-panel-object-object/89271/1 "2024-07-04T20:30:09Z")

</div>

I have some large complex objects stored in my context variables.

I have found that when I retrieve them via global.get, if I then use a node.warn inside my function node, it shows the retrieved object and lets me drill down through objects that are values within that object.

If however, I set some variable as equal to one of those objects within the object and then use node.warn to send that new variable to the debug pane, instead of seeing an explorable object, I simple see "[object Object]"

I have found that if I wrap that embedded object either during assignment to the variable or once in the variable within a JSON.parse(JSON.stringify(embeddedObj)) then I can use a node.warn to see an explorable object.

Is there a better way to do this that I am missing if I really want to see the details of that embedded object in the debug pane?

---

<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:** [4 July 2024 20:58 UTC](https://discourse.nodered.org/t/debug-panel-object-object/89271/2 "2024-07-04T20:58:35Z")

</div>

I tend to wrap what I'm debugging in an object or array.

```auto
node.warn({thing})

```

```auto
node.warn([msg.payload, otherThing])

```

---

<div class="post-metadata">

**Author:** ![tmichaeltx](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tmichaeltx](https://discourse.nodered.org/u/tmichaeltx)\
**Post date:** [4 July 2024 21:09 UTC](https://discourse.nodered.org/t/debug-panel-object-object/89271/3 "2024-07-04T21:09:56Z")

</div>

Wrapping in the object, solves the display problem. Any guess as to why that is necessary?

---

<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 July 2024 21:09 UTC](https://discourse.nodered.org/t/debug-panel-object-object/89271/4 "2024-07-18T21:09:58Z")

</div>

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