Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to display wchar_t* as string in the debugger?



  • I tried Qt Creator and Visual Studio 2013 and I cannot get in any way to view the contents of a wchar_t* string.

    Here is some code:

    @
    void
    concatenateWCharStrings(
    wchar_t* source01,
    size_t source01Count,
    wchar_t* source02,
    size_t source02Count,
    wchar_t* destination,
    size_t destinationCount)
    {
    for (int index = 0;
    (source01Count) > index;
    ++index)
    {
    *destination++ = *source01++;
    }@

    I want to watch the string that's being built at "destination"? Is that possible somehow but in the memory window?


Log in to reply