Search code examples
node.jsibm-cloudnode-red

See full msg debug with Node-RED


I'm running an application on Bluemix using Node-RED. I added a debug node to output the complete msg object, but it is being truncated in the debug console. How can I see the complete object?


Solution

  • You can have the output sent to the console as well as the debug tab by checking a box in the debug node's config. The whole object will be sent to the console

    The current debug tab will always truncate, but there are some plans to possibly add a separate debug window that could show the whole message. Also have a look in settings.js as I believe the character limit for when to truncate is set there, so if it's just too short you can increase it a bit.

    EDIT:

    I'd missed the bluemix tag earlier. To view the console log you need to use the cf command to tail the output. e.g. for a app called node-red you would run the following:

    cf logs node-red