I got everything set up to build and debug C++ code. I noticed the vendor of the toolchain implemented many STL containers (vector, string, etc…) and it would be great to be using them. One minor thing that is bothering me is that I cannot really find a way to have VSCode showing me the content of the STL containers while debugging.
Googling around I see there are some references but none of them seems to be working.
Just as a test, if you set a breakpoint in some function and have it hit that breakpoint, then go into the “Debug Console” and use the GDB command for printing a variable (e.g., a global variable that is an STL container) with p <variable name>, does it pretty-print the container contents properly? (Per c++ - How to pretty-print STL containers in GDB? - Stack Overflow)
Unfortunately pretty-print seems not to be enabled on my debugger
The toolchain / packages I am using are:
framework-stm32cubef4 1.25.2
tool-ldscripts-ststm32 0.1.0
toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
GNU gdb (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 8.0.50.20171128-git
Do I perhaps have to enable pretty-print manually? According to https://sourceware.org/gdb/wiki/STLSupport I have to modify the gdbinit file but I am a bit lost about where to find this file for the toolchain I am using.