Debug node shows object object

#1

Hmm, I can't find the debug message where this occurred but htere are times when I set up the debug node to show a complete msg and the debug window shows an unexpandable object object. Has anyone one else run into this?

0 Likes

#2

Sounds like you are seeing the string "[Object Object]" (which is why it's not expandable). Somewhere along the flow, an incoming object was converted to a string -- here are a couple of ways that could happen in the Javascript language:

> var test = {};
undefined
> test
{}
> test.toString()
'[object Object]'
> "" + test
'[object Object]'
0 Likes

#3

Thanks, that's helpful! I'll keep that in mind when I see it next time and see if I can fix that. I may have fixed it this time and not realized that is what I did.

0 Likes