Somę questions about JavaScript engine in BTT

I've started using JavaScript actions in BTT what bring me to ask some questions about diagnostic and engine in BTT:

  • Is it possible to write to the JS console and see that messages anywhere?
  • Is it possible to run debug during JavaScript execution?
  • As I understand this is only core javaScript so all external functions like writing file are provided by BTT process embedding JavaScript Core, so it is not possible to use fetch API or something like that?

You can inspect and see the logs via Safari, there you could also debug however it can get a bit complicated

Correct - the standard "Run Real Java Script" action runs via JavaScript Core and is extended by some BTT provided functionality. I have implemented some of the basic additions like atob, btob, fetch, timeouts etc. but it can not provide everything that is possible in the browser.

https://docs.folivora.ai/docs/1106_java_script.html

1 Like

Yes, I know this doc, but there is not too much about implemented functions (f. ex. fetch, btoa …).
Does exist any other source of information or some kind of reflection API?
I’m newbie macOS user and sometimes I have trouble to find detailed information (current apple documentation is beautiful and .. much worse then previous - archived - version).