Values in context not showing up

I have this simple function which I use to initialise two variables in context:

// Manually set context variables
context.set("lastTemp", 22);
context.set("status", 0);

msg.payload = "Context variables initialized: lastTemp is 22, status is 0";
return msg;

After injecting the function I would expect to see those values in context. I don't. I refreshed the context and the browser but still no values are show.
I am not sure why. I do not get any error and the confirmation message show up from the debug node.
However the flow is thereafter acting like those values exists because it is working as expected.

Any hint?

A node's context values will only show in the side bar if the node is selected

Thank you! I didn't know.

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