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 684 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 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.

    jsulmJ 1 Reply Last reply
    0
    • I Ivan_Chokyrlan

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 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.

        jsulmJ JonBJ 2 Replies Last reply
        0
        • I Ivan_Chokyrlan

          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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          0
          • I Ivan_Chokyrlan

            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.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on 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
            0
            • jsulmJ jsulm

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

              I Offline
              I Offline
              Ivan_Chokyrlan
              wrote on last edited by
              #6

              @jsulm no

              1 Reply Last reply
              0
              • JonBJ JonB

                @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 last edited by
                #7

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

                JonBJ 1 Reply Last reply
                0
                • I Ivan_Chokyrlan

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

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on 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 last edited by
                    #9

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

                    jsulmJ 1 Reply Last reply
                    0
                    • I Ivan_Chokyrlan

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

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 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 last edited by
                        #11

                        I can't understand which debugger I am using.

                        jsulmJ 1 Reply Last reply
                        0
                        • I Ivan_Chokyrlan

                          I can't understand which debugger I am using.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 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 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.

                            jsulmJ 1 Reply Last reply
                            0
                            • I Ivan_Chokyrlan

                              Знімок екрана 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.

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 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 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 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 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
                                    1
                                    • aha_1980A aha_1980

                                      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 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

                                        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 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

                                        • Login

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