# Is there a way to process with the contents of "debug messages"?

**URL:** <https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930>\
**Category:** General\
**Created:** [25 June 2020 02:30 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930 "2020-06-25T02:30:18Z")\
**Posts on this page:** 7\
**Page:** 3

<div class="post-metadata">

**Author:** ![yossy4](https://avatars.discourse-cdn.com/v4/letter/y/c67d28/32.png) [@yossy4](https://discourse.nodered.org/u/yossy4)\
**Post date:** [9 July 2020 09:16 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/41 "2020-07-09T09:16:48Z")

</div>

@Colin

Sorry...  
I took a picture of the capture screen again.  
If you change the command, you may have succeeded!

 ![m](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8e1d1e5d1569aff35482de77f9bbee77193483fe.png)  
However, I don't know if this process is correct as @JGKK posted.

---

<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:** [9 July 2020 10:15 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/42 "2020-07-09T10:15:50Z")

</div>

> [@Colin](#):
>
> Put a debug node on the switch output and check it is working.

Have you done that?  
Then you will need to change the command.

---

<div class="post-metadata">

**Author:** ![yossy4](https://avatars.discourse-cdn.com/v4/letter/y/c67d28/32.png) [@yossy4](https://discourse.nodered.org/u/yossy4)\
**Post date:** [10 July 2020 02:38 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/43 "2020-07-10T02:38:29Z")

</div>

I was able to confirm that it works properly.

 ![o](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b37909cbb05d136a5adbaa32ed8250893b18d56b.png)  
The msg.payload after the switch node is incorrect...

The debug message is shown in the image below.  
 ![n](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/99c9526bdbed8e4df0114b03b8b98ddf3bd11229.png)

I was able to restart it for the time being, so I think it is a good temporary measure.  
What do you guys think?

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [10 July 2020 05:18 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/44 "2020-07-10T05:18:04Z")

</div>

> [@yossy4](#):
>
> The msg.payload after the switch node is incorrect...

in the message object the status node sends there is no payload property so that is expected.

---

<div class="post-metadata">

**Author:** ![yossy4](https://avatars.discourse-cdn.com/v4/letter/y/c67d28/32.png) [@yossy4](https://discourse.nodered.org/u/yossy4)\
**Post date:** [10 July 2020 05:37 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/45 "2020-07-10T05:37:01Z")

</div>

@JGKK  
Thanks.  
I also noticed a mistake.

---

<div class="post-metadata">

**Author:** ![yossy4](https://avatars.discourse-cdn.com/v4/letter/y/c67d28/32.png) [@yossy4](https://discourse.nodered.org/u/yossy4)\
**Post date:** [14 July 2020 01:23 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/46 "2020-07-14T01:23:40Z")

</div>

Hi guys.  
After running for a few days, the data loss is gone.  
I think the interim measures were successful.  
Thanks to all who have taught me.  
Thank you very much!  
@dceejay Thanks!  
@knolleary Thanks!  
@Colin Thanks!  
@JGKK Thanks!  
@Trying_to_learn Thanks!

---

<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:** [28 July 2020 01:23 UTC](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930/47 "2020-07-28T01:23:53Z")

</div>

Closed on 28 July 2020 01:23 UTC

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

[Previous page](https://discourse.nodered.org/t/is-there-a-way-to-process-with-the-contents-of-debug-messages/28930.md?page=2)
