I have experienced one of my Apps hanging every few days. The time freezes but a reload of the app (short button press). This got me thinking if there was a way to capture the console output when not connect via Bluetooth.
The Settings/Utils/Debug option has three options: Hide, Show, Log.
Hide means disabled
Show displays the debug messages on the watch screen (i guess it has some use, but only if there is only a few messages)
Log displays on the screen and logs to log.txt
There is no option to log but not to show on the screen.
Also it appears that the debug messages are the ones from the firmware.
I have tested and it does not look like console.log('xxxx') output is sent to log.txt
I think it would be really useful to have that happen so that output that would get displayed if connected to the IDE would get logged. Apprecaite that log.txt accumulates and this could be an issue if it consumes the storage - but it has to be the owners responsibility to enable/disable the logging as required.
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.
Hi All,
I have experienced one of my Apps hanging every few days. The time freezes but a reload of the app (short button press). This got me thinking if there was a way to capture the console output when not connect via Bluetooth.
The Settings/Utils/Debug option has three options: Hide, Show, Log.
There is no option to log but not to show on the screen.
Also it appears that the debug messages are the ones from the firmware.
I have tested and it does not look like console.log('xxxx') output is sent to log.txt
I think it would be really useful to have that happen so that output that would get displayed if connected to the IDE would get logged. Apprecaite that log.txt accumulates and this could be an issue if it consumes the storage - but it has to be the owners responsibility to enable/disable the logging as required.
What do others think ?