Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to display wchar_t* as string in the debugger?
Forum Updated to NodeBB v4.3 + New Features

How to display wchar_t* as string in the debugger?

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 793 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zingam
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved