i’m trying to debug codes, but i have a hard time finding errors because console.log doesn’t create any output. I tried with a completely new node which only contains console.log("Hello");, but even this doesn’t show up in the console.
I set LogLevel to debug. I also tried to define an output flow variable, but the cell which should contain “Hello” is empty. I get no error message at all.
I don’t know how to do that, but maybe the knime.log i already posted is sufficient? Like i said, i can’t see anything related to console.log in there. The code only consist of out=console.log('Hello'); out;
The tutorial suggests to write ‘console.log(xAccessor)’ to understand what is happening at this point. But as long as this doesn’t generate any output i won’t be able to understand the rest of the code completely.
Sorry for putting this into an additional post, but i can’t edit my other posts anymore.
I found a workaround with the ‘prompt’ command.
I feel that console.log() isn’t supposed to write anything into KNIME-console but is used for interactive consoles like when i open the resulting html-file in a browser. I also can’t get it to run there, but using ‘prompt’ inside Knime will do for now. I’ll still be happy if someone could explain how to write something into KNIME-console because that would still make stuff much easier.