platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
336 stars 219 forks source link

Add Debugging via GDB stub #43

Open universam1 opened 7 years ago

universam1 commented 7 years ago

Debugging via GDB stub is available: https://github.com/esp8266/Arduino/tree/master/libraries/GDBStub

Would be a killer feature for PlatformIO!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/47388424-add-debugging-via-gdb-stub?utm_campaign=plugin&utm_content=tracker%2F38211776&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38211776&utm_medium=issues&utm_source=github).
ivankravets commented 7 years ago

We tested that and it does not work properly :(

Does it work for you?

universam1 commented 7 years ago

Here is a good introduction: http://hackaday.com/2015/12/12/squash-your-esp-8266-bugs-with-esp-gdbstub/

Actually I was hoping of PIO, guess they should be able to get some support by Espressif likely

minkir014 commented 5 years ago

Any thing new about this issue?

augustozanellato commented 5 years ago

Any news? I could try it this evening probably

maxgerhardt commented 3 years ago

For reference: https://github.com/sysprogs/esp8266-openocd promises to be a fully-featured OpenOCD version for the ESP8266, so JTAG debugging should be possible with it, next to the here-mentioned GDBstub over UART.

AgainPsychoX commented 5 months ago

I visited the topic myself and I come up with some notes and minimal project. Of course, it's not perfect, and there are few weird things, but it works for me. If anyone is interested: https://github.com/AgainPsychoX/TestGDBStubForESP8266