Debugger causes wdt reset #5861
Replies: 1 comment
-
Posted at 2017-09-12 by @gfwilliams The debugger should never have been included in ESP8266 builds, I'll see about taking it out. Due to the way it works it'll never be usable on ESP8266 I'm afraid. I'm unsure if it'd even work on ESP32. If you need it you're best off using one of the proper Espruino boards Posted at 2017-09-12 by JumJum Shame on me, I didn't even know anything about this debugger.
Posted at 2017-09-13 by @gfwilliams 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 ESP8266 used to be compiled with Posted at 2017-09-13 by Stipser Is there any way to debug my code externally? Like some tool using a virtual machine or something like that? Posted at 2017-09-13 by @gfwilliams You could buy a proper Espruino WiFi board? If you then wanted to switch back to ESP8266 once it was working, there isn't much in the way of code to change (it's just the Wifi initialisation stuff). Posted at 2017-09-13 by @allObjects ;-)... a nice, new 'definition' of in-circuit debugger. I like that very much. Posted at 2017-09-14 by @gfwilliams Actually just to add you could compile Espruino for Linux or Raspberry Pi (maybe even windows with Ubuntu for Windows) and could run your code on that. Obviously there's no digital IO though. Posted at 2017-09-14 by @allObjects
@gfwilliams, can it be mocked? ...stubbed? ...at least limited? ...if so, then that would be pretty cool, because a (unit and to a certain extent integration) testing can be done... Posted at 2017-09-14 by @gfwilliams Well, I think pins D0 to D31 are in there, they just don't do anything. You could add your own custom code in jshardware.c for it and do whatever you wanted - but at some point it becomes far more simple to just use real hardware :) Posted at 2017-09-14 by Wilberforce I can confirm espruino for Linux compiles and runs on ubuntu on windows 10. It's great for testing things like websockets and using the filesystem code as you can edit the files from within windows and have them change in the windows sub-system. I also build the esp32 code within the sub-system - it's easier than starting a virtual machine that uses more resources. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-09-12 by Stipser
Anytime i trie to use the debugger in any code i get this:
Is it just some bug or am i doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions