Node-RED troubleshooting starts with the message you can inspect. Confirm that a message reaches a checkpoint, identify its value and type, and check the property path the next node uses. Then move the checkpoint forward until you find the first place where the observed result differs from your expectation.
A connected flow can look convincing while passing the wrong information. Before changing several settings, write down what you expect at one point and compare it with the actual Debug output. This guide gives you a repeatable local practice exercise and a worksheet for keeping the evidence clear.
Start with a local practice flow
Use a Windows 11 practice computer with Node-RED already running and its editor open. This is a message-inspection exercise, not an installation guide. Use an isolated practice flow without device outputs, network requests or credentials. Record your Node-RED version and the names of the nodes you inspect.
The exercise below uses invented room-temperature data. It does not represent a real sensor, a client installation or my measured test results. You need an Inject node, a Change node and Debug nodes. These are core nodes; no additional palette package is required.
1. Describe the expected result
Write a specific expectation: after the Change node, msg.payload should be the number 21. Avoid writing only “the flow should work.” Your statement needs a checkpoint, a property, a value and a type. The worksheet includes space for each.
Node-RED messages are JavaScript objects. A message commonly contains payload, but other properties can carry useful information. A number, a string and an object are different types even when their displayed contents look similar. Node-RED’s Working with messages guide explains how the Debug view identifies these types: https://nodered.org/docs/user-guide/messages.
2. Build an inspection checkpoint
Add an Inject node named Practice temperature. Set its payload type to JSON and enter {“room”:”Study”,”temperature”:21}. Use a manual trigger with no repeat interval. Connect it to a Debug node named Before change. Configure that Debug node to display the complete message object.
Deploy the practice changes, clear the Debug sidebar and press the Inject button once. Expand payload. Your expected input is an object with room equal to Study and temperature equal to the number 21. Inspect what appears rather than treating the expectation as an observed result. Record any difference.
If nothing appears, first check whether the Debug node is enabled, the sidebar is paused, a filter hides the node, or the wire reaches it. Confirm you deployed the edits. These checks distinguish a missing display from evidence that no message was produced. Do not reinstall Node-RED because a sidebar is empty.
3. Inspect before and after the change
Add a Change node and wire the Inject output to it as well as to Before change. Add a second Debug node named After change to the Change output. Configure it to show the complete message too. You now have two observation points for one manually triggered message.
In the Change node, use Set for msg.payload. For the source value, select the message property type and enter payload.temperature. The destination is msg.payload; the source is msg.payload.temperature. Where the editor already provides a msg selector, enter the remaining path rather than adding another msg prefix. Check your installed node’s help if the field layout differs.
Deploy, clear the sidebar and trigger once. Before change should show the original payload object. After change should show a numeric payload of 21. Compare the named outputs. The Change operation replaces payload, so the room field is no longer inside that output payload. That is expected for this exercise; keep the object intact in a real design when later steps need its other fields.
4. Separate a value from its type
For a deliberate practice fault, change only the Change node’s source type to string and enter the text payload.temperature. Deploy and trigger again. The expected faulty output is the literal text payload.temperature, rather than the number from that property. This is an expected exercise outcome, not a reported runtime test.
Correct the source type back to a message property, deploy and retest. If your original flow produces the text 21 instead of the number 21, record both the displayed content and the type. Do not assume that downstream nodes will interpret the two identically. Consult the receiving node’s help before choosing a conversion.
JSON text introduces another distinction. Text that looks like an object is still a string until it has been parsed. The official messages guide describes using the JSON node for conversion. In this exercise, selecting the Inject JSON type provides an object. Typing the same characters into a string field creates a different input.
5. Check the path before changing the logic
For a second practice fault, change only the source path to payload.temp. The supplied object has temperature, not temp. Deploy and inspect After change. Record what your installed version reports; do not assume a particular missing-property outcome. Then restore payload.temperature and retest.
In an unfamiliar message, expand the actual structure in Debug. Use its copy-path control where available to identify a nested field. Compare spelling, capitalization and nesting with the consuming node’s configured property. A field at payload.temperature is different from a field at temperature.
When working with a Switch node later, record its tested property, rules and output wiring. Check whether it evaluates all matching rules or stops at the first match. Node-RED’s core-node documentation explains these routing choices: https://nodered.org/docs/user-guide/nodes. A message on an unexpected branch may reflect the configured rule rather than a failed connection.
6. Move the checkpoint forward
Apply the same method to a longer practice flow. Observe immediately before a suspected step and immediately after it. When both match your expectation, move to the next step. When they differ, investigate that smaller section before touching unrelated nodes.
Use one manual input at a time. Named Debug nodes and the automatically added _msgid can help you follow an individual message. Separate messages have different identifiers. Clear old output so you do not compare a previous trigger with the current one. If a node constructs a new message, inspect the resulting object rather than assuming every original property remains.
Change one setting per trial and write down the result. A useful note is “Before change: object with numeric temperature 21. After change: string payload.temperature. Source was configured as string. Changing source to message property restored numeric 21.” This is a worked fictional note that shows the level of evidence to capture.
Keep the finding narrower than the system
A successful local check establishes what happened in that practice message path. It does not prove that a sensor is accurate, a network service is available or a production automation is reliable. Keep those questions separate and verify them at their own boundaries when you are authorized to work on the system.
After the exercise, disable temporary Debug nodes you no longer need. Full messages can contain private information in other flows. Keep this worksheet and any shared examples limited to harmless practice data. Node-RED’s Debug sidebar guide explains filtering, pausing and clearing output: https://nodered.org/docs/user-guide/editor/sidebar/debug.
Your next practice task
Download the Node-RED Message Inspection Worksheet and inspect one local transformation. Record the expected result, actual value, type and path before changing anything. Finish with the smallest correction supported by the evidence and a repeat of the same input.
For structured learning, explore Mastering Node-RED: Home, IoT & Industrial Automation at Train & Inspire: https://www.traininspire.com/courses/node-red-course-iot-industrial-automation-training/ . The course is offered through early access while development continues. Review the currently available lessons, current price and course terms before enrolling. Train & Inspire provides independent education; this article does not claim manufacturer endorsement.