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. Variable inaccessible in Debugger
Qt 6.11 is out! See what's new in the release blog

Variable inaccessible in Debugger

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 972 Views
  • 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.
  • P Offline
    P Offline
    philm001
    wrote on last edited by
    #1

    Hello all,

    I am attempting to access the this variable in the debugger and I am getting an error saying that it is not accessible. I have verified that the "Load .gdbinit file on startup" option is unchecked and "Load system GDB pretty printers" is unchecked.

    Are there any other additioanal fixes that I can do?

    I am running QT Creator 4.6.1 on ubuntu 16.04

    aha_1980A 1 Reply Last reply
    0
    • P philm001

      Hello all,

      I am attempting to access the this variable in the debugger and I am getting an error saying that it is not accessible. I have verified that the "Load .gdbinit file on startup" option is unchecked and "Load system GDB pretty printers" is unchecked.

      Are there any other additioanal fixes that I can do?

      I am running QT Creator 4.6.1 on ubuntu 16.04

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi @philm001, welcome!

      does the debugger log (menu Windows > Views) provide some more insight?

      do you try to debug a release build?

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • P Offline
        P Offline
        philm001
        wrote on last edited by
        #3

        @aha_1980 Thank you for your reply. I did try the debug release build and it did not hit any breakpoints.

        I am very new the qt and I am not sure what the debugger log is telling me. If the answer lies in there, then I will post the log here:

        <47python theDumper.fetchVariables({"autoderef":1,"context":"","displaystringlimit":"100","dyntype":1,"expanded":["watch","return","local.this","local","inspect"],"fancy":1,"formats":{},"nativemixed":0,"partialvar":"local.this","passexceptions":0,"qobjectnames":1,"resultvarname":"","stringcutoff":"10000","token":47,"typeformats":{},"watchers":[]})
        >&"python theDumper.fetchVariables({\"autoderef\":1,\"context\":\"\",\"displaystringlimit\":\"100\",\"dyntype\":1,\"expanded\":[\"watch\",\"return\",\"local.this\",\"local\",\"inspect\"],\"fancy\":1,\"formats\":{},\"nativemixed\":0,\"partialvar\":\"local.this\",\"passexceptions\":0,\"qobjectnames\":1,\"resultvarname\":\"\",\"stringcutoff\":\"10000\",\"token\":47,\"typeformats\":{},\"watchers\":[]})\n"
        
        >~"result={token=\"0\",data=[{iname=\"local.this\",name=\"this\",origaddr=\"0x7fffffffd4f8\",address=\"0x7fffffffe1d0\",address=\"0x7fffffffe1d0\",numchild=\"1\",sortable=\"1\",children=[numchild=\"0\",],type=\"MainWindow\",valueencoded=\"notaccessible\",value=\"\",},],typeinfo=[],partial=\"1\",counts={},timings=[]}\n"
        >47^done
         <Rebuild Watchmodel 2 @ 09:30:56.665 [7582ms] >
        sFinished retrieving data
        dADJUSTING CHILD EXPECTATION FOR local.this
        
        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @philm001,

          could you post the complete debugger log? From the snippet I don't see any obvious.

          I can't remember having done a special debugger setup on Ubuntu so far, it usually worked out of the box. (Of course I had to install gdb).

          Qt has to stay free or it will die.

          1 Reply Last reply
          1

          • Login

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