Cabbage Logo
Back to Cabbage Site

Logging cabbagecodescript from plant

Is there a simple way to dump what is generated in between JS? I can’t really think of one. I’m trying to debug what is generated.


Oh wow, someone is actually using this feature :grimacing: Just kidding, but I think you might be the first! No easy way to print the output as of yet. I guess you could just copy and paste to an online JS compiler?

Hehe! It’s pretty much the least labour intensive way to build and maintain my gui, so it’s great in that respect, but the concept took a bit to get my head around.

Indeed that is a clever idea, only that Cabbage.print is not defined, I would have to refactor the code to work around that…tho I could create a mock Cabbage object ughhhh yayayay

I ended up resorting to the tooltip text which displays the channel string, though my widget was nslider, which doesn’t display one. Took me a while to figure that one out :wink:

Just swap out the Cabbage.print() with console.log

[puts hood on and walks away surreptitiously]