Format strings in name of a debug output

In the console output of a debug node the name of the node is printed, however I would like the name of the node to change with a changing input. I have already tried this by using a format string, shown below, however this does not change the output.

image
image

Alternativaly, a way to change the formatting of the console output for the debug messages would work too. Are either of these two things possible?

I don't think you can change the name of the node like that.
You could use JSONata in the debug node to customise the output:

[
    {
        "id": "999e43622e7fad88",
        "type": "inject",
        "z": "317b5175d0f9c970",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "topic",
        "payload": "",
        "payloadType": "date",
        "x": 240,
        "y": 100,
        "wires": [
            [
                "b068025607cad5db"
            ]
        ]
    },
    {
        "id": "b068025607cad5db",
        "type": "debug",
        "z": "317b5175d0f9c970",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": true,
        "tostatus": true,
        "complete": "\"this is the payload \"&payload &\" This is the topic \" &topic",
        "targetType": "jsonata",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 530,
        "y": 100,
        "wires": []
    }
]

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