Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 76603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:41:58+00:00 2026-05-10T20:41:58+00:00

From googling around it looks like Xcode (3.1 in my case) should be at

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:41:58+00:00Added an answer on May 10, 2026 at 8:41 pm

    The ability to view the container’s items may rely on the complexity of the templated type. For trivial objects like int, bool, etc., and even simple class templates like

    template <class T> struct S { T m_t; } 

    I normally have no problem viewing vector items in the debugger variable view. I say normally because there seem to be occasional bugs that cause stuff–particularly when debugging–not to behave the way I expected. One of those things is garbage or totally useless information in the variable view. Usually a clean rebuild of the target (or sometimes even a more drastic restarting of XCode followed by a clean rebuild) fixes the problem.

    As for the other container types, it’s most likely hard to efficiently view this information. For example a map is often implemented as a red-black tree. The debugger would have to know that in advance in order to properly walk the tree and show you all the keys and values. That’s probably asking a lot from Xcode or GDB–especially since the former focuses more on Objective-C and plain C than C++ (hence the fact that namespaces tend to kill code completion despite their ubiquity and importance).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand something that , by googling around, seems like a bug
I've been googling around and trying to find out what is the behaviour of
I am looking for information on how to draw flame fractals from googling around
From googling around, I found that using while loops or using variables is discouraged.
This question results from hours of googling highstocks, zoom, extremes, ranges, and every other
So I have been Googling and I am quite sure my problem emerge from
How can I run an AppleScript from within an C commandline utility? Googling didn't
I have a piece of code that looks like this: Dir.new(path).each do |entry| puts
Hi i been googling around and couldn't found any answer or approach to this
Possible Duplicate: Should I Dispose() DataSet and DataTable? OP comment: I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.