Skip to content

The displayed value differs from the acquired value. #5345

@mitz0615

Description

@mitz0615

Current Behavior

" The 'Debug' tab has the functionality to switch data types.

However, the copied value is always the same.

For example, the time stamp data from the 'Inject Node' can be displayed in ISO format, but the copied data uses the UNIX time format.

Image

Expected Behavior

Node-RED users expect to see the same data displayed in the 'Debug' tab. If the 'debug tab' contains ISO-formatted data, this should be copied.
Image

Steps To Reproduce

  1. "Inject node" and "debug node" connect as shown in the picture

  2. Click the button on the left of "inject Node".

  3. Open the debug tab.

  4. Click on 'msg.payload.number'.

  5. You can switches of The payload's value.
    6.You copied by copy button "clipboard data"

Example flow

[
{
"id": "66ab8e8e65030d10",
"type": "debug",
"z": "b2832368d2d6c9f4",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 80,
"wires": []
},
{
"id": "2952f37a4cc22375",
"type": "inject",
"z": "b2832368d2d6c9f4",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 920,
"y": 80,
"wires": [
[
"66ab8e8e65030d10"
]
]
}
]

Environment

  • Node-RED version: v4.1.1
  • Node.js version: v20.19.5
  • npm version: 11.6.2
  • Platform/OS: Linux
  • Browser: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions