That's looking promising then!
@JumJum try..catch should work ok anywhere you want to try it.
try..catch
However the console won't tell you if there's an uncaught exception, and the Espruino functions (eg. SPI stuff) don't produce catchable exceptions.
@Gordon started
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.
That's looking promising then!
@JumJum
try..catch
should work ok anywhere you want to try it.However the console won't tell you if there's an uncaught exception, and the Espruino functions (eg. SPI stuff) don't produce catchable exceptions.