XCode Debugging full contents is not showing

Discussion in 'Mac Programming' started by dearvivekkumar, Jan 11, 2011.

  1. dearvivekkumar macrumors newbie

    Joined:
    Jan 3, 2011
    Location:
    New Delhi, India
    #1
    [​IMG]
    Code:
        #include <iostream>
        #include <vector>
        using namespace std;
        
        typedef struct Record
        {
        	std::string		name;
        	bool			isVisible;
        	int			index;
        }Record;
        
        vector<Record> recordVector;
        
        int main (int argc, char * const argv[])
        {
        	Record tmpRecord = {"c++", true, 1};
        	
        	for (int i = 0 ; i < 15; ++i) {
        		recordVector.push_back(tmpRecord);
        	}
        	
            return 0;
        }
    When I am debugging this and hover my cursor at recordVector variable to see the entire contents of this, its showing just 10(0-9) only, also its also not showing full contents in memory browser also. Although this vector has 15 contents in it.

    Any clue for tweaking out this will be greatly appreciated.

    Thanks!!
     
  2. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2
    You can see all the values in the expressions window, at least in Xcode 3.2.5.

    There's an "All" button there (see screenshot).

    B
     

    Attached Files:

Share This Page