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. Debugging / tracking Qt class question
Forum Updated to NodeBB v4.3 + New Features

Debugging / tracking Qt class question

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 200 Views 1 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 4 Oct 2020, 16:19 last edited by
    #1

    I am stepping thru my source code using standard debugging.

    If I put a breakpoint @ line implementing QBluetoothDeviceDiscoveryAgent , the process stops but if select "step into" I end up on next line of code.

    Is there a way to "step into " and continue stepping thru Qt class ?
    I know how to "track" in Qt source code .
    I am not sure how or if "Start and debug external application" would work .

    Code sample

    qDebug(QT_BT) << "DEBUG Create a discovery agent and connect to its signals";
     QBluetoothDeviceDiscoveryAgent *discoveryAgent_DEBUG = new QBluetoothDeviceDiscoveryAgent(this);
     connect(discoveryAgent, SIGNAL(deviceDiscovered(QBluetoothDeviceInfo)),
             this, SLOT(deviceDiscovered(QBluetoothDeviceInfo)));
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 4 Oct 2020, 17:40 last edited by
      #2

      For a long-time developer it should be clear that without debug informations the debugger can not step into a function. So link against Qt debug libs (on windows) or make sure the debug information are available to the debugger so it can do what you want.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      1/2

      4 Oct 2020, 16:19

      • Login

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