Am I right to expect that when E.setConsole("Terminal") or Terminal.setConsole(), it says the REPL is connected to this new 'serial port'.
Yes.
So if my code has an error, which I would usually see on left in ide, eg. syntax error. The error should now be displayed on the emulator screen??
Yes, try pasting this into the left-hand side Terminal.setConsole();setTimeout("lets_error",100)
Cos I cannot see that behavior, but mb its cos the emulator kinda freezes once an error occur and I have to refresh page?
Could be
That's probably it. But obviously if you transfer the REPL to Terminal in the emulator then you have no way of inputting to Bangle.js any more, so it will appear to be crashed unless you added something like a setWatch first
am I correct in expecting console.log to transfer to the connected serial??
It should output to where the REPL currently is, yes...
But obviously if you transfer the REPL to Terminal in the emulator then you have no way of inputting to Bangle.js any more, so it will appear to be crashed unless you added something like a setWatch first
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes.
Yes, try pasting this into the left-hand side
Terminal.setConsole();setTimeout("lets_error",100)
Could be
That's probably it. But obviously if you transfer the REPL to Terminal in the emulator then you have no way of inputting to Bangle.js any more, so it will appear to be crashed unless you added something like a setWatch first
It should output to where the REPL currently is, yes...