Over the past few weeks I've been getting a crazy number of memory errors as I evolve my code, so I finally bit the bullet and dug into getting JTAG and IDF debugging working. Clearly I need to get into the weeds on how memory is being allocated.
Now - code-level debugging is working just fine, but I'd really like to be able to monitor the heap allocation and other memory operations as I go, and the VSCode debugging tab has the tantalising "memory" section but I can't seem to find any real tutorials or articles on how to get that happening.
ESP-IDF docs have a section on GDB, and I know GDB is important in feeding that info into VSCode, but I can't find anything that can help me get the two working well together.
Has anyone else been able to get the memory debugging part of VSCode working for an ESP-IDF project? Do you have any pointers?
I've also been able to create some output files that can be consumed by Segger which has been interesting - possibly a bit overwhelming though for my purposes.
On Chip Debugging of Memory (stack/heaps/etc) in VScode
-
- Posts: 5
- Joined: Wed Nov 29, 2023 1:59 am
-
- Posts: 225
- Joined: Wed May 02, 2018 12:12 pm
Who is online
Users browsing this forum: No registered users and 14 guests