How to get detailed stack information

[
    {
        "id": "c5bb02e15e36ccd2",
        "type": "inject",
        "z": "e24cd2d1b0061f29",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 270,
        "y": 180,
        "wires": [
            [
                "bbb9cc5207c1c623"
            ]
        ]
    },
    {
        "id": "bbb9cc5207c1c623",
        "type": "function",
        "z": "e24cd2d1b0061f29",
        "name": "function",
        "func": "const fun = (item) => {\n    if (item.num == 1) {\n        return msg\n    }\n}\n\nconst main = () => {\n    return fun(null);\n}\n\nreturn main();",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 500,
        "y": 180,
        "wires": [
            []
        ]
    },
    {
        "id": "439fa290471aed52",
        "type": "catch",
        "z": "e24cd2d1b0061f29",
        "name": "",
        "scope": null,
        "uncaught": false,
        "x": 280,
        "y": 280,
        "wires": [
            [
                "58a3e9efbffe0f28"
            ]
        ]
    },
    {
        "id": "58a3e9efbffe0f28",
        "type": "debug",
        "z": "e24cd2d1b0061f29",
        "name": "debug",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 280,
        "wires": []
    }
]

The above is a test code, The following is the msg.error information
1675220530662

My problem is that when there are many codes in the function, it is difficult to accurately locate the specific error location only by the existing error information. Is there any way to display the stack information?

Pls help, Thanks!

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