Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML debugger doesn't work for cmake-based project? Breakpoints never triggered that placed in main.qml



  • I'm experiencing issues with enabling QML debugger for cmake-based project. All breakpoint are marked as "Unclaimed breakpoint" and I cant debug even main.qml.

    Tried Solution that listed on internet:

    1. Enable QML debugging check box.
    2. QQmlDebuggingEnabler enabler;
    3. -DCMAKE_BUILD_TYPE=Debug
    4. QML_DISABLE_OPTIMIZER=1
    5. add_definitions(-DQT_QML_DEBUG)
    6. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQT_QML_DEBUG ")

Log in to reply