locked
inspect std::vector, on debug RRS feed

  • Question

  • Hi, I am using Visual Studio Express 2012, on Windows 7.

    Usually it is quite ok, and debugging is ok too. However , sometimes, when I am debugging, and using structures of std::vector type, I can not inspect the vector, directly, via a Variable Watch, or, by directly hovering over it, with the mouse pointer.

     

    For example, I have a vector:

     

    std::vector<std::pair<int, int>> homePoints;

    which I CAN inspect, by hovering over it:

    But I also have a vector:

    struct match{
    		std::wstring szwHomeTeamName;
    		std::wstring szwAwayTeamName;
    		int iHomeTeamScore;
    		int iAwayTeamScore;
    		std::wstring szwTimeAndDate;
    	};
    	std::vector<match> matches;

    which, for some reason, I can't inspect in the same way, see this:

    C

    it seems that it sometimes works, for some vectors, and not for others? Why?

    Thanks!


    • Edited by hansaaa Saturday, October 19, 2013 6:54 PM
    Saturday, October 19, 2013 6:53 PM

Answers

  • Hello,

    I think that you need to expand the 'matches' and its next nodes when you hover on it.

    References:

    Thanks,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    • Edited by Amanda Zhu Friday, October 25, 2013 9:24 AM edit
    • Proposed as answer by Amanda Zhu Friday, October 25, 2013 9:24 AM
    • Marked as answer by Amanda Zhu Monday, October 28, 2013 1:35 AM
    Tuesday, October 22, 2013 10:32 AM