You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi,

    Version 1v91 of Espruino will be fine - so I'd just use the default binary offered by the flasher. Do you have the URL of the one you tried but that didn't work so I can check?

    The normal IDE should work as well. This post was from 2015, so 'latest' code then should now be included by default

    Try creating a function on the right-hand side:

    function foo() {
      debugger;
      digitalWrite(LED1,1);
      digitalWrite(LED1,0);
      digitalWrite(LED2,1);
      digitalWrite(LED2,0);
    }
    

    Click upload, then after upload, in the left-hand side of the IDE, type foo().

    It should jump in to debugger mode where you can step through line by line.

    The only thing you can't do is debug code that executes during the upload process (for instance if you also wrote foo() on the right-hand side - but it's easy enough to type it in after, run it on a button press, or use setTimeout to do it after a delay

About

Avatar for Gordon @Gordon started