Important: Please read the Qt Code of Conduct -

Debugger does not stopping at qml files but in c++ code it does.

  • Hello,
    As the subject says, my debugger is attached at .cpp files and to the .qml files not.


    • I have tried to use both 8.1 CDB and 10.0 CDB and still the same phenomenon.
    • I tried to add this: CONFIG+=declarative_debug CONFIG+=qml_debug to .pro files.
    • Also opened new qml project just to check the phenomenon and debugger is attached to qml like a charm.

    This is my configuration:


    What am I missing?
    Plz help me I feel frustrated,

  • Moderators

    Hi @NivSwisa,

    Sorry to hear that you are having problems getting it to debug your QML. At least it is working generally so we know the problem is limited to your project for some reason. Can you check the application output to see if it is indicating that it is able to connect to the QML debugger? It should have some text at the beginning which indicates this. If it is not attaching then can you send the output you get there?

  • Sure,

    This is what I get when starting the problematic application:

    QML debugging is enabled. Only use this in a safe environment.

    When starting another application (Where QML debugger works) I get :

    QML debugging is enabled. Only use this in a safe environment.
    QML Debugger: Waiting for connection on port 51528...

    Thank you.

Log in to reply