Seeing this blew my mind:
But it would be really awesome if it actually showed me the value inside it. Is it possible to fix this?
Seeing this blew my mind:
But it would be really awesome if it actually showed me the value inside it. Is it possible to fix this?
Not possible yet - but upvote the request on https://youtrack.jetbrains.com/issue/CPP-605 to get this traction.
You can use gdb command in console:
print ((wchar_t*)((char *)str.d + str.d->offset))
or just add watch in "Variables":
((wchar_t*)((char *)str.d + str.d->offset))
Another way is use this project to add Qt pretty printer.
From https://youtrack.jetbrains.com/issue/CPP-605, the Clion ticket vadim-peretokin linked to in his answer.
On Windows... you can use natvis files with MSVC.
qt5.natvis
or qt6.natvis
to your source directory,Download links for the natvis files can be found on https://wiki.qt.io/IDE_Debug_Helpers, but also below. You'll need to drop the .xml
extension for the debugger to recongize and load the file.
© 2022 - 2024 — McMap. All rights reserved.