Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. The debugger is not stopping at breakpoints in Qt Creator 6 with CMake. It just runs the project as usual.

The debugger is not stopping at breakpoints in Qt Creator 6 with CMake. It just runs the project as usual.

Scheduled Pinned Locked Moved Unsolved Qt 6
19 Posts 4 Posters 681 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.
  • I Offline
    I Offline
    Ivan_Chokyrlan
    wrote on 19 Feb 2025, 07:43 last edited by
    #1

    Hello! I have a problem. I'm writing a program in Qt Creator 6 using CMake. However, there is an issue with debugging: when I set a breakpoint, the debugger just runs the project as usual without stopping at the breakpoint.

    J 1 Reply Last reply 19 Feb 2025, 08:00
    0
    • I Ivan_Chokyrlan
      19 Feb 2025, 07:43

      Hello! I have a problem. I'm writing a program in Qt Creator 6 using CMake. However, there is an issue with debugging: when I set a breakpoint, the debugger just runs the project as usual without stopping at the breakpoint.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 19 Feb 2025, 08:00 last edited by
      #2

      @Ivan_Chokyrlan said in The debugger is not stopping at breakpoints in Qt Creator 6 with CMake. It just runs the project as usual.:

      Qt Creator 6

      QtCreator 6? Are you sure you mean the QtCreator version and not Qt version?
      On which OS and what debugger is used (GDB, CDB,...)?

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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ivan_Chokyrlan
        wrote on 19 Feb 2025, 11:10 last edited by
        #3

        Qt Version: Installed Qt 6.8.2 (MinGW 64-bit).
        Operating System: Windows.
        Debugger: Using GDB 13.1.0 64-bit (D:\Qt\Tools\mingw1310_64\bin\gdb.exe).
        I can provide remote access via AnyDesk to help resolve the issue.

        J J 2 Replies Last reply 19 Feb 2025, 11:35
        0
        • I Ivan_Chokyrlan
          19 Feb 2025, 11:10

          Qt Version: Installed Qt 6.8.2 (MinGW 64-bit).
          Operating System: Windows.
          Debugger: Using GDB 13.1.0 64-bit (D:\Qt\Tools\mingw1310_64\bin\gdb.exe).
          I can provide remote access via AnyDesk to help resolve the issue.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 19 Feb 2025, 11:35 last edited by
          #4

          @Ivan_Chokyrlan Do you have any warnings in your Kit in QtCreator?

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

          I 1 Reply Last reply 19 Feb 2025, 11:36
          0
          • I Ivan_Chokyrlan
            19 Feb 2025, 11:10

            Qt Version: Installed Qt 6.8.2 (MinGW 64-bit).
            Operating System: Windows.
            Debugger: Using GDB 13.1.0 64-bit (D:\Qt\Tools\mingw1310_64\bin\gdb.exe).
            I can provide remote access via AnyDesk to help resolve the issue.

            J Offline
            J Offline
            JonB
            wrote on 19 Feb 2025, 11:36 last edited by
            #5

            @Ivan_Chokyrlan
            You have told us your Qt version. This is nothing to do with the version of Qt Creator you are running and having the problem in. You should let us know what that is. You can find it inside Creator, I think via the Help menu, you are looking for something like About Qt Creator.... The number will be somewhere around 11 to 15, give or take, not 6.

            I don't know whether it would help, but you might run the gdb.exe via the Command Prompt, place breakpoints and check whether that works.

            Nobody here is going to look at your system or use AnyDesk. Please understand this is a forum for users of Qt just like yourself, this is not The Qt Company itself.

            I 1 Reply Last reply 19 Feb 2025, 13:32
            0
            • J jsulm
              19 Feb 2025, 11:35

              @Ivan_Chokyrlan Do you have any warnings in your Kit in QtCreator?

              I Offline
              I Offline
              Ivan_Chokyrlan
              wrote on 19 Feb 2025, 11:36 last edited by
              #6

              @jsulm no

              1 Reply Last reply
              0
              • J JonB
                19 Feb 2025, 11:36

                @Ivan_Chokyrlan
                You have told us your Qt version. This is nothing to do with the version of Qt Creator you are running and having the problem in. You should let us know what that is. You can find it inside Creator, I think via the Help menu, you are looking for something like About Qt Creator.... The number will be somewhere around 11 to 15, give or take, not 6.

                I don't know whether it would help, but you might run the gdb.exe via the Command Prompt, place breakpoints and check whether that works.

                Nobody here is going to look at your system or use AnyDesk. Please understand this is a forum for users of Qt just like yourself, this is not The Qt Company itself.

                I Offline
                I Offline
                Ivan_Chokyrlan
                wrote on 19 Feb 2025, 13:32 last edited by
                #7

                @JonB A more detailed explanation can be given because the console shows an error.

                J 1 Reply Last reply 19 Feb 2025, 13:39
                0
                • I Ivan_Chokyrlan
                  19 Feb 2025, 13:32

                  @JonB A more detailed explanation can be given because the console shows an error.

                  J Offline
                  J Offline
                  JonB
                  wrote on 19 Feb 2025, 13:39 last edited by
                  #8

                  @Ivan_Chokyrlan I don't know what that means, nor how that affects you telling us what version of Creator you are using.

                  1 Reply Last reply
                  0
                  • I Offline
                    I Offline
                    Ivan_Chokyrlan
                    wrote on 20 Feb 2025, 07:22 last edited by
                    #9

                    Знімок екрана 2025-02-20 091813.png Знімок екрана 2025-02-20 091938.png Знімок екрана 2025-02-20 092108.png

                    J 1 Reply Last reply 20 Feb 2025, 07:24
                    0
                    • I Ivan_Chokyrlan
                      20 Feb 2025, 07:22

                      Знімок екрана 2025-02-20 091813.png Знімок екрана 2025-02-20 091938.png Знімок екрана 2025-02-20 092108.png

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 20 Feb 2025, 07:24 last edited by
                      #10

                      @Ivan_Chokyrlan Which of these debuggers is used in your Kit? You should use the one provided by Qt installer.

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

                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        Ivan_Chokyrlan
                        wrote on 20 Feb 2025, 07:35 last edited by
                        #11

                        I can't understand which debugger I am using.

                        J 1 Reply Last reply 20 Feb 2025, 07:43
                        0
                        • I Ivan_Chokyrlan
                          20 Feb 2025, 07:35

                          I can't understand which debugger I am using.

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 20 Feb 2025, 07:43 last edited by jsulm
                          #12

                          @Ivan_Chokyrlan Why don't you simply go to your Kit and check?

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

                          1 Reply Last reply
                          0
                          • I Offline
                            I Offline
                            Ivan_Chokyrlan
                            wrote on 20 Feb 2025, 07:51 last edited by
                            #13

                            Знімок екрана 2025-02-20 094812.png

                            Do you mean this? Here it is grey, I can`t understand that I need to choose the correct one.

                            J 1 Reply Last reply 20 Feb 2025, 07:55
                            0
                            • I Ivan_Chokyrlan
                              20 Feb 2025, 07:51

                              Знімок екрана 2025-02-20 094812.png

                              Do you mean this? Here it is grey, I can`t understand that I need to choose the correct one.

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 20 Feb 2025, 07:55 last edited by
                              #14

                              @Ivan_Chokyrlan You're using the correct compiler.
                              I just realized that you set the break point in an empty line (line 18). You have to set the break point in a code line!

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

                              1 Reply Last reply
                              0
                              • I Offline
                                I Offline
                                Ivan_Chokyrlan
                                wrote on 20 Feb 2025, 08:02 last edited by
                                #15

                                Знімок екрана 2025-02-20 100144.png

                                https://drive.google.com/file/d/1UoBNfWE6cwxL6j5sNu_LzadoPTubwstS/view?usp=sharing

                                08b61238-22f0-4029-9167-9c888bfcc61e-image.png

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  Ivan_Chokyrlan
                                  wrote on 20 Feb 2025, 08:23 last edited by
                                  #16

                                  Nothing helped. Here are the photo and video

                                  1 Reply Last reply
                                  0
                                  • aha_1980A Offline
                                    aha_1980A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on 20 Feb 2025, 11:13 last edited by
                                    #17

                                    Hi @Ivan_Chokyrlan,

                                    1. Can you share your Debugger Log? You can find it in View > Views > Debugger Log (Switch to Debug mode first)
                                    2. I strongly advice to use path names only containing ASCII characters. Please try something like D:\Users\ivanc\Test as project directory.

                                    Regards

                                    Qt has to stay free or it will die.

                                    I 2 Replies Last reply 20 Feb 2025, 13:49
                                    1
                                    • aha_1980A aha_1980
                                      20 Feb 2025, 11:13

                                      Hi @Ivan_Chokyrlan,

                                      1. Can you share your Debugger Log? You can find it in View > Views > Debugger Log (Switch to Debug mode first)
                                      2. I strongly advice to use path names only containing ASCII characters. Please try something like D:\Users\ivanc\Test as project directory.

                                      Regards

                                      I Offline
                                      I Offline
                                      Ivan_Chokyrlan
                                      wrote on 20 Feb 2025, 13:49 last edited by
                                      #18

                                      @aha_1980
                                      Знімок екрана 2025-02-20 154619.png Знімок екрана 2025-02-20 154659.png

                                      1 Reply Last reply
                                      0
                                      • aha_1980A aha_1980
                                        20 Feb 2025, 11:13

                                        Hi @Ivan_Chokyrlan,

                                        1. Can you share your Debugger Log? You can find it in View > Views > Debugger Log (Switch to Debug mode first)
                                        2. I strongly advice to use path names only containing ASCII characters. Please try something like D:\Users\ivanc\Test as project directory.

                                        Regards

                                        I Offline
                                        I Offline
                                        Ivan_Chokyrlan
                                        wrote on 20 Feb 2025, 14:53 last edited by
                                        #19

                                        @aha_1980
                                        Thank you very much for the hint! The problem was in the path—there was a folder with Cyrillic characters.

                                        1 Reply Last reply
                                        1

                                        1/19

                                        19 Feb 2025, 07:43

                                        • Login

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