Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To view the contents of an STL container in the debugger using Clion and GCC on an M1 Mac, follow these steps:

  1. Add a breakpoint at the line where the STL container is instantiated or modified.
  2. Run the program in debug mode.
  3. When the breakpoint is hit, open the debugger console.
  4. Type in the name of the STL container variable and press enter.
  5. The contents of the STL container will be displayed in the console.

Alternatively, you can use the "Variables" tab in the debugger to view the contents of the STL container. Expand the variable holding the container, and you should be able to see its contents.