Important: Please read the Qt Code of Conduct -

Debugging / tracking Qt class question

  • 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)));

  • Lifetime Qt Champion

    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.

Log in to reply