Debug in node-red vs. debug javascript in a dedicated html file

i'm new in node red.
i want to use a serialport to send request and recieve data from a controller.

i understand the processing of the data need to be done in a function .
i can manage javascript.

but when i write and test javascript in some webpages in html ( not nodered related ) then i write varuables to the console in firefox to analyse.

how can i do this kind of debug and log in node-red?
or do i have to simulate my datapackets in a standalone html/javecript ?

To know the answer, you need to know the architecture.

First, there are 2 major parts - the runtime (server side) and the editor (powered by the server but runs client side)

You edit the configuration in the browser - but when you deploy, the actual runtime on the server gets updated. Thats where code like the serial port runs.

So in short, no, you cannot simply poke values into the browsers console and affect things like the serial port.

Typically, you use debug nodes at the entry and exit of a node to see how it transformed the msg object.

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