Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inspecting STL containers in Xcode

From googling around it looks like Xcode (3.1 in my case) should be at least trying to give me a sane debug view of STL containers - or at least vectors.

However, whenever I go to look at a vector in the debugger I just see M_impl, with M_start and M_finish members (and a couple of others) - but nothing in-between! (it's a debug build, btw).

Am I missing a setting or something somewhere?

I've also read that there are macros available that can augment the debug viewer even further to inspect more complex containers - but have been unable to find any.

I'd also like to be able to view std::wstrings, without having to drop to the memory viewer. It shows std::string fine. Is there anything I can do to show std::wstring?

I realise this is a bit of a composite question - but it's all really part of the same subject.

like image 690
philsquared Avatar asked Nov 08 '08 23:11

philsquared


1 Answers

You can create Data formatters for different variable types so they show up nicer :-).

like image 50
Jasper Bekkers Avatar answered Oct 10 '22 05:10

Jasper Bekkers