Ask Your Question
3

What is the process for viewing the contents of an STL container in the debugger using Clion and GCC on an M1 Mac?

asked 2021-07-06 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-11-26 15:00:00 +0000

david gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-06 11:00:00 +0000

Seen: 15 times

Last updated: Nov 26 '22