Debug javascript in transform service

Hi There,

how can I debug my Javascript-Transform? I’ve tried console.log, but obviously this is not available in js transform service.

Bests
Pascal

did you try:

log:set DEBUG org.eclipse.smarthome.transform.javascript
1 Like

I do it in node-red
OR
break it down is small chunks. Comment out every thing except the first line and try it and then uncomment the second line…

Is there really no way to just write logs?

Nope

I had exactly the same issue:
THis solved it for me:

2 Likes

Maybe this can help. For simple scripts it does the job.
https://js.do/