You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Great! It should also integrate with the IDE (albeit not for breakpoints).

    Just to clear up why there are issues: ESP8266 expects tasks to finish in under ~1 second, but the debugger works by keeping a task running and then handling user input via IRQs. The only solution would be to add proper multi-tasking to ESP8266 but then it'd realistically use too much RAM. It's the same reason you can crash the ESP8266 with while(1); where on Espruino boards you can just Ctrl+C out of it.

    ESP8266 used to be compiled with SAVE_ON_FLASH, which took out some features (including debug) to lower the flash memory usage. At some point that changed though, and it probably wasn't obvious that debugging started getting compiled in because of that.

About

Avatar for Gordon @Gordon started