Struggled with moving my app to the physical watch.
Some the key issues:
let not allowed on watch (ES5)
variables not initialised when app initially loaded (worked OK in simulator)
setText with <div id= >
This lead to a surprising amount of different failure modes:
watch stuck on “restore to a safe state” - requiring a hard factory reset
app cannot be activated for training - toggle switches back directly
training starts - watch reboots when changing to app screen
app screen blank
once app screen actually comes up it becomes easier to debug
To debug I basically removed all code from my app and inserted it back again code block by block to pinpoint the errors. Took a fair amount of time, but now the app mostly works on the watch too…
Questions - I never managed to locate a log or crash dump from the watch. Where is it?
Some suggestions:
Would be good if simulator and watch was following the same standard, so more bugs could be found in the simulator, or if there was a “linter” to warn of unsafe usage
I have found most of my problems touched upon in the documentation, code examples or this forum, but the information is sometimes very brief and not always easy to find, maybe gather everything in the reference document and add a TOC and index
My own approach is generally top-down, understand architecture, state model and data flow, build a skeleton and iteratively add detail. Documentation is a bit lacking in this high level view, it feels more like a collection of many details and example fragments.
For me, the intended debug approach is not very clear, maybe add more guidance in the manual on how to use the VS Code IDE especially for debugging.
But kudos for making this IDE available,