Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Debugger does weird stuff

Qt Debugger does weird stuff

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 6 Posters 754 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    keford
    wrote on last edited by
    #1

    Hello to everyone. I'm having problems with the Qt Creator's debugger. Instead of stepping through the code I wrote, it goes into internal scripts. Because of this, I cannot track down the error in my program, and use the debugger in general, because it never exits internal scripts. bf456891-fc91-4c43-b468-cf2d26b1bc70-изображение.png
    8c1c1692-19da-4c56-b6f7-d85bcc120a50-изображение.png
    816ad19c-bf7f-4741-9c9b-70032459f722-изображение.png 0c707c5f-fe69-4d8f-bf09-85f35fb12fa6-изображение.png
    It also seems to me that when i start debugging, breakpoints appear by themselves, I did not put them there.
    Can somebody please help me to solve this problem?

    jsulmJ 1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Good morning @keford
      That looks like debugging a release build without debugging symbols. Can we see the compiler output, please?
      Cheers
      Axel

      Software Engineer
      The Qt Company, Oslo

      K 1 Reply Last reply
      0
      • K keford

        Hello to everyone. I'm having problems with the Qt Creator's debugger. Instead of stepping through the code I wrote, it goes into internal scripts. Because of this, I cannot track down the error in my program, and use the debugger in general, because it never exits internal scripts. bf456891-fc91-4c43-b468-cf2d26b1bc70-изображение.png
        8c1c1692-19da-4c56-b6f7-d85bcc120a50-изображение.png
        816ad19c-bf7f-4741-9c9b-70032459f722-изображение.png 0c707c5f-fe69-4d8f-bf09-85f35fb12fa6-изображение.png
        It also seems to me that when i start debugging, breakpoints appear by themselves, I did not put them there.
        Can somebody please help me to solve this problem?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @keford How are you stepping through? There are to possibilities:

        1. Step into a function/method
        2. Step over a function/method

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

        K 1 Reply Last reply
        0
        • andrA Offline
          andrA Offline
          andr
          wrote on last edited by
          #4

          Could it be that you did put a breakpoint on some other main.cpp (not necessarily the "ico/main.cpp")?

          K 1 Reply Last reply
          0
          • JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            It happens sometimes if you have debug build. Add another break point somewhere below the current break point and press continue.

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @keford How are you stepping through? There are to possibilities:

              1. Step into a function/method
              2. Step over a function/method
              K Offline
              K Offline
              keford
              wrote on last edited by
              #6

              @jsulm i tried both, and it seems like there's not much difference. I stiil can't exit internal code, it doesn't matter, how i step through it.

              JonBJ 1 Reply Last reply
              0
              • K keford

                @jsulm i tried both, and it seems like there's not much difference. I stiil can't exit internal code, it doesn't matter, how i step through it.

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #7

                @keford said in Qt Debugger does weird stuff:

                I stiil can't exit internal code, it doesn't matter, how i step through it.

                FWIW, try Step Out (not In or Over), repeatedly. That's the shortest way to get out of code, if that's what you're trying to do, and if it works for your situation.

                1 Reply Last reply
                0
                • andrA andr

                  Could it be that you did put a breakpoint on some other main.cpp (not necessarily the "ico/main.cpp")?

                  K Offline
                  K Offline
                  keford
                  wrote on last edited by
                  #8

                  @andr i've tried that, and all it does - stops debugging somewhere in the internal code, despite the fact that I put a breakpoint in my code, not in the qt's.

                  1 Reply Last reply
                  0
                  • Axel SpoerlA Axel Spoerl

                    Good morning @keford
                    That looks like debugging a release build without debugging symbols. Can we see the compiler output, please?
                    Cheers
                    Axel

                    K Offline
                    K Offline
                    keford
                    wrote on last edited by
                    #9

                    @Axel-Spoerl hello, thank you for responding
                    2c9a80c2-593f-4b74-be70-423d009216c4-изображение.png

                    1 Reply Last reply
                    0

                    • Login

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