This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2652R: Debugging C++ Vectors in CCS

Part Number: CC2652R

Tool/software: Code Composer Studio

I'm trying to view a C++ vector in the debugger and I get the pointer to the first and last element and can not view any other elements.  Is there a way to look at the contents?  I already tried converting it to a C array and it still does not show me the contents.  I'm using Version 9.2.0.00013.

Thanks,

--Jordan

  • Hi Jordan,

    Can your provide a reproducible test case? It does not have to be your actual project but a stripped down version - the simpler the better. I'm looking for the project+source+executable.

    Thanks

    ki

  • Hi Ki,

    I was able to reproduce it with the "bigtime" project.  I also checked to make sure the compiler wasn't optimizing stuff away and I have it on the lowest setting.

    bigtime_cleaned_up.zip

    Thanks,

    --Jordan

  • Thanks Jordan,

    One option is to right-click on __begin and select the "Display As Array..." option in the context menu. You can specify the desired start index and length to view the contents as an array

    Thanks

    ki