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. inspect third-party library from qt debugger
Forum Updated to NodeBB v4.3 + New Features

inspect third-party library from qt debugger

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.2k Views 2 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.
  • sajis997S Offline
    sajis997S Offline
    sajis997
    wrote on last edited by
    #1

    Hello forum,

    I am using the OpenGL mathematics library within the application I am developing now from Qt creator.

    I am trying to see the value of one of elements of the library , for example

    glm::vec3 position;
    

    while debugging. All I see is value "not accessible". Is there any way to make them visible so that I can realize what is indeed happening within the code structure. I am developing from Ubuntu system and Qt creator uses the GDB debugger as an underlay , I think.

    Some insights into this issue would be very helpful.

    Thanks

    1 Reply Last reply
    0
    • Hamed.MasafiH Offline
      Hamed.MasafiH Offline
      Hamed.Masafi
      wrote on last edited by
      #2

      That library should compiled in debug mode and has valid source directory.

      • list item If you are installed this lib from package manager then install package-dbg too.
      • list item If you are compiled this lib then compile it in debug mode and do not remove source directory.

      Remote object sharing (OO RPC)
      http://forum.qt.io/topic/60680/remote-object-sharing-oo-rpc-solved

      Advanced, Powerful and easy to use ORM for Qt5
      https://forum.qt.io/topic/67417/advanced-powerful-and-easy-to-use-orm-for-qt5

      1 Reply Last reply
      0
      • sajis997S Offline
        sajis997S Offline
        sajis997
        wrote on last edited by
        #3

        The Library is a header only library . I did not need to compile it, just included it.

        http://glm.g-truc.net/0.9.7/index.html

        1 Reply Last reply
        0
        • sneubertS Offline
          sneubertS Offline
          sneubert
          wrote on last edited by
          #4

          Hi sajis997

          "not accessible" is usually displayed if the object is not yet in scope. Maybe your just looking in the wrong moment. As long as the object has not been instanced you can not watch it.

          1 Reply Last reply
          0
          • sajis997S Offline
            sajis997S Offline
            sajis997
            wrote on last edited by
            #5

            I have declared the following class member variable as follows:

            class A
            {
                public:
                     .....................
                     .....................
                private:
                     std::vector<glm::vec3> mVertices;
            };
            

            I believe that the variable is in the class scope and all other member functions of the class will be able to see it. Is not it ?

            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