.natvis Support for QJson Classes
-
I’m currently debugging using Visual Studio 2022. The project I’m involved in happens to be using QJSon classes from QT 5x. However, the .natvis included with the QT Tools extension for Visual Studio doesn’t seem to include support for the json classes. Is there anywhere I can find a .natvis that has support the json classes, or could anyone point me to somewhere/someone that does have it?
-
I’m currently debugging using Visual Studio 2022. The project I’m involved in happens to be using QJSon classes from QT 5x. However, the .natvis included with the QT Tools extension for Visual Studio doesn’t seem to include support for the json classes. Is there anywhere I can find a .natvis that has support the json classes, or could anyone point me to somewhere/someone that does have it?
Hi and welcome,
QJson
does not seem to be included in both of the files for Qt5 and 6- https://code.qt.io/cgit/qt-labs/vstools.git/tree/QtMSBuild/QtMsBuild/qt6.natvis.xml
- https://code.qt.io/cgit/qt-labs/vstools.git/tree/QtMSBuild/QtMsBuild/qt5.natvis.xml
What about this repo?
I think the owner of the repo is also here in the forum, cant remember his user name right now. -
Hi and welcome,
QJson
does not seem to be included in both of the files for Qt5 and 6- https://code.qt.io/cgit/qt-labs/vstools.git/tree/QtMSBuild/QtMsBuild/qt6.natvis.xml
- https://code.qt.io/cgit/qt-labs/vstools.git/tree/QtMSBuild/QtMsBuild/qt5.natvis.xml
What about this repo?
I think the owner of the repo is also here in the forum, cant remember his user name right now.@Pl45m4 Thanks for repsonding. I luckily found that repo yesterday and used the file but Visual Studio throws an error in the output and tells me that the "QCborContainerPrivate is undefined" yet in the watcher, it labels the unknown type as such. I'm currently back at square one it seems.
-
I found these Natvis visualizers to be working fine with Visual Studio Code, if that helps you: https://github.com/narnaud/natvis4qt/tree/main/natvis
QJson
value visualizers are only included in theqt6.natvis
file.