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. I can't stop on breakpoints on 4.8.2
Forum Update on Monday, May 27th 2025

I can't stop on breakpoints on 4.8.2

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtcreatorqtcreator debug
5 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    ABponant
    wrote on 1 Apr 2019, 09:55 last edited by
    #1

    Hello,
    I know it seems to be a quite recurrent question but I tried to check lot of infos about this issue and I'm still looking for a solution (on Windows 10 using QTCreator 4.8.2).

    It's QtQuick project with C++ code.

    If I look at my project settings, it seems to build with Desktop Qt 5.12.1 MSVC 2017 64.
    So I guess it should use CDB.

    I've installed CDB for QTCreator but it's not detected in Tools->Options->Kits->Debuggers !?! I can only see:

    GNU gdb 8.1 for MinGW 7.3.0 64 bit

    Is it normal?

    Anyway, in Project Settings->Run I can see it executes c:\....\Qt\build-test-Desktop_Qt_5_12_1_MSVC2017_64bit-Debug\debug_test.exe

    I have the options "CONFIG+=debug" "CONFIG+=qml_debug"
    When I try to Start and Break on Main, it starts but doesn't break on main
    But in Debugger console I see messages such as:

    Called the itemSlot with value: QVariant(QObject*, QQmlTimer(0x1877a647a60)) ..\test\qml_api.cpp: 22
    

    I can set breakpoints but it doesn't stop.

    When I launch my application, I can see:

    QML Debugger: Waiting for connection on port 49845...

    And then messages from my app. I don't know if I'm supposed to see some response from debugger after the above message !?

    So I suppose it may be because I do not use the right debugger but how to do make CDB available?

    Alain

    J 1 Reply Last reply 1 Apr 2019, 11:46
    0
    • A ABponant
      1 Apr 2019, 09:55

      Hello,
      I know it seems to be a quite recurrent question but I tried to check lot of infos about this issue and I'm still looking for a solution (on Windows 10 using QTCreator 4.8.2).

      It's QtQuick project with C++ code.

      If I look at my project settings, it seems to build with Desktop Qt 5.12.1 MSVC 2017 64.
      So I guess it should use CDB.

      I've installed CDB for QTCreator but it's not detected in Tools->Options->Kits->Debuggers !?! I can only see:

      GNU gdb 8.1 for MinGW 7.3.0 64 bit

      Is it normal?

      Anyway, in Project Settings->Run I can see it executes c:\....\Qt\build-test-Desktop_Qt_5_12_1_MSVC2017_64bit-Debug\debug_test.exe

      I have the options "CONFIG+=debug" "CONFIG+=qml_debug"
      When I try to Start and Break on Main, it starts but doesn't break on main
      But in Debugger console I see messages such as:

      Called the itemSlot with value: QVariant(QObject*, QQmlTimer(0x1877a647a60)) ..\test\qml_api.cpp: 22
      

      I can set breakpoints but it doesn't stop.

      When I launch my application, I can see:

      QML Debugger: Waiting for connection on port 49845...

      And then messages from my app. I don't know if I'm supposed to see some response from debugger after the above message !?

      So I suppose it may be because I do not use the right debugger but how to do make CDB available?

      Alain

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 1 Apr 2019, 11:46 last edited by
      #2

      @ABponant said in I can't stop on breakpoints on 4.8.2:

      I've installed CDB for QTCreator

      How did you install it?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ABponant
        wrote on 1 Apr 2019, 12:26 last edited by
        #3

        @jsulm I did it with the Maintenance tool.

        J 1 Reply Last reply 1 Apr 2019, 12:36
        0
        • A ABponant
          1 Apr 2019, 12:26

          @jsulm I did it with the Maintenance tool.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 1 Apr 2019, 12:36 last edited by jsulm 4 Jan 2019, 12:36
          #4

          @ABponant You can't install CDB with maintenance tool. You need to get "Debugging Tools for Windows/CDB" from Microsoft and install it.
          See https://doc.qt.io/qtcreator/creator-debugger-engines.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3
          • A Offline
            A Offline
            ABponant
            wrote on 1 Apr 2019, 14:30 last edited by ABponant 4 Jan 2019, 14:34
            #5

            @jsulm ok, I didn't pay attention to that.

            So I switched to minGW build and GDB works as expected.
            Thanks a lot

            1 Reply Last reply
            0

            4/5

            1 Apr 2019, 12:36

            • Login

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