See: esp8266/Arduino#4386
- Change the port in the last line of
gdbcmdsfrom/dev/cu.SLAB_USBtoUARTto your port.- On mac/linux, run
ls /dev/cu.*if you're not sure which port.
- On mac/linux, run
- Upload firmware to you board:
platformio run -t upload - Connect gdb:
./gdb.sh