watch std::unordered_map

Sysprogs forums Forums VisualGDB watch std::unordered_map

This topic contains 2 replies, has 2 voices, and was last updated by  elikfir 2 weeks, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30401

    elikfir
    Participant

    Hi,

    I tried to watch std::unordered_map on visualGDB and I can see only hashtable members without any pretty printing for that.

    do you have any quick solution? (any natvis file that I can use to fix that?)

    code:

    #include <iostream>
    #include <string>
    #include <unordered_map>

    int main(int argc, char *argv[])
    {
    std::unordered_map<int32_t, std::string> tmp;
    tmp[0] = “str0”;
    tmp[1] = “str1”;

    return 0;
    }

    thanks

     

    #30402

    support
    Keymaster

    Hi,

    Sorry, we don’t have a ready-to-use visualizer of unordered_map yet. It is on the roadmap, however it’s hard to give any time estimates now. As a workaround, please consider creating one manually as shown in this tutorial.

    #30405

    elikfir
    Participant

    thanks.

    Once you have any solution for that It will be great to get it even a temporary/walkaround solution (like a working visualizer that just need to plug and play)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.