Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to debug: variables not accessible or with wrong values

Unable to debug: variables not accessible or with wrong values

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 202 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.
  • M Offline
    M Offline
    Mark81
    wrote on 17 Dec 2021, 19:07 last edited by Mark81
    #1

    Qt 6.2.0, QtCreator 5.0.2, Ubuntu 20.04 Desktop (both dev and target machines).

    From my dev machine I'm trying to debug applications on the target.
    I'm unable to do anything because most of variables are set as "not accessible" and even when they are "accessible" their value is wrong, example:

    Schermata da 2021-12-17 20-04-25.png

    As you can see:

    1. file is not accessible even it's a local variable
    2. filename seems to be an empty string, while it has a proper value (the file was actually opened)
    3. line seems to be an empty string, while it has a proper value as printed out by qDebug() call

    It's a pain to debug in such a way... would you please help me to understand why it does not work?
    What I have to check?

    Here the settings of GDB:

    Schermata da 2021-12-17 20-07-17.png

    Schermata da 2021-12-17 20-07-21.png

    I see the warnings about "solib-search-path" and "sysroot" but as you can see in the pictures above I tried to define them.

    1 Reply Last reply
    0

    1/1

    17 Dec 2021, 19:07

    • Login

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