Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. .natvis Support for QJson Classes
Forum Updated to NodeBB v4.3 + New Features

.natvis Support for QJson Classes

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 461 Views 3 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.
  • J Offline
    J Offline
    Joshua Hopkins
    wrote on last edited by
    #1

    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?

    Pl45m4P 1 Reply Last reply
    0
    • J Joshua Hopkins

      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?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Joshua-Hopkins

      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.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      J 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @Joshua-Hopkins

        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.

        J Offline
        J Offline
        Joshua Hopkins
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • martin_kyM Offline
          martin_kyM Offline
          martin_ky
          wrote on last edited by
          #4

          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 the qt6.natvis file.

          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