如何在xcode調試器(C++)中查看動態創建的數組的內容?查看xcode中的動態數組的內容C++(lldb)
int main(int argc, const char * argv[])
{
int *v;
int size;
cout << "Enter array size" << endl;
cin >> size;
v = new int [size];
for (int i=0; i<size; i++){
cin >> v [size];
}
// see array contents
return 0;
}
我要查看訴內容。
我認爲你的問題已經在這裏找到答案:http://stackoverflow.com/questions/484707/viewing-a-dynamically-allocated-array-with-the-xcode-debugger – lolando
這不是在Xcode 5 – user1673892