I've done a dumb thing and realised that the only working copy of some code I have is runnng on a puck, somehow I forgot to save the backup.
Is there any way to get the REPL to print out the current code thats on the device, I tried pocking at the Storage functions but I get an error "Storage" is not defined
"Storage" is not defined
Does dump() allow the desired results in the left-hand console panel of the WebIDE?
Note to self: Make backups
thanks @Robin thats what I was looking for!
Glad to see recovery was successful from that unnerving experience!!
Just a note on this:
If you're written code with save() then dump() will attempt to reconstitute it and the code may not be entirely the same - but is probably 'good enough' :)
If you wrote code with save to flash then dump() will give you the exact code character for character that you uploaded.
save to flash
Wow, 4 years down the road and this saved me! Thanks for thinking of everything @gordon! Your devices are so fun to work with.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem