Read code from device

Posted on
  • 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

  • Thr 2019.07.25

    Does dump() allow the desired results in the left-hand console panel of the WebIDE?­bal_dump

    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.

  • Wow, 4 years down the road and this saved me! Thanks for thinking of everything @gordon! Your devices are so fun to work with.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Read code from device

Posted by Avatar for sammachin @sammachin