2

When I hover over an stl container, I can instantly get a snapshot of its contents:

enter image description here

However, if I for example, have a class with m_array which is allocated as new int[99]; then I only see the first integer of that array when I hover.

I find this inconvenient for debugging.

How can I make my class display its array's contents when I hover over it when debugging?

Thanks

1 Answer 1

3

There is no official way to do that, as far as I know. You can however go around this using the watch variables box, type name of your array, size of array. For example

myArray,100 shows 100 elements of array myArray.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.