PlatformIO ESP8266 debugging

Apparently debugging is possible and is working on other platforms:

Visual Studio (via Visual Micro extenstion):
http://www.visualmicro.com/page/esp8266.aspx

Eclipse (using GDBStub):

Is PIO looking into options to add debugging for ESP8266 given it is possible?

We are working on that. Stay tuned with us https://twitter.com/PlatformIO_Org

Any update on the eps8266 unified debugger ability?

See

Hi,

You say ā€œthere is a hardware issueā€, could you please be more specific? Iā€™d like to understand why it is not possible on POI when it is working on other IDEs.

Thanks in advance.
Regards.

Iā€™m also curiousā€¦ I donā€™t know much about ā€˜actualā€™ debugging on the ESP8266 (as opposed to the Arduino littering of serial print statements) and am wondering if PIO can somehow take advantage of esp-gdbstub to do debuggingā€¦ although limited to one hardware breakpoint and one hardware watchpointā€¦ the issue of software breakpoins only working for code in RAM, and the hardware breakpoint only working for code on flashā€¦ and the WiFi stack causing the whole thing to crash if the cpu is stopped for too longā€¦ erā€¦ I think itā€™s probably a whole disaster just waiting to happen. But it will sill be nice! :smiley: :angel:

This would be so greatā€¦ I am hoping to see it workingā€¦

1 Like

IS this available now? I am looking for ESP8266 debugger.

I found out how to get this working with GDB stub (in the Arduino framework) and VSCode with the Platformio plugin. The how-to setup and work around the ESP8266 hardware limitation is written up here:
https://www.hilltop-cottage.info/blogs/adam/debugging-esp8266-with-gdb-and-vscode-platformio/

1 Like