relaxed-coral•15mo ago
Debugging js block/console/logs...I missing? missing? pls help!
Hey folks...I've been a developer for a long time. I want to do the bulk of the stuff in code I hate no code spaghetti mazes. But the problem is how do I debug a Javascript block?! Or console.info stuff I may want to see like an api response?
Note this is not for a function, but the lighter weight js block. Just to test I made a dirt simple flow. Start->js block. The js only says: console.log(' test'); I press the big blue run button. I absolutely do not see test anywhere in the output of that run. I also do not see ***test in the webtools console. Also, when I tried to run a js block with some real code I got a syntax error. There was no line, no stack trace, nothing but the error message. And to make matters worse the error was an image not even text that I could then copy and paste into an ai or search.
Even a catch try block failed because obviously I couldn't console log anything. Botpress for all its faults has very good logging support for everything going on under the hood.
There has to be a better way. I can't imagine a platform as good as this drops the ball so hard on something so basic as console logging. What am I missing?!?!
Note this is not for a function, but the lighter weight js block. Just to test I made a dirt simple flow. Start->js block. The js only says: console.log(' test'); I press the big blue run button. I absolutely do not see test anywhere in the output of that run. I also do not see ***test in the webtools console. Also, when I tried to run a js block with some real code I got a syntax error. There was no line, no stack trace, nothing but the error message. And to make matters worse the error was an image not even text that I could then copy and paste into an ai or search.
Even a catch try block failed because obviously I couldn't console log anything. Botpress for all its faults has very good logging support for everything going on under the hood.
There has to be a better way. I can't imagine a platform as good as this drops the ball so hard on something so basic as console logging. What am I missing?!?!
0 Replies