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. QtCreator Debugger always breaks on Qt's source, no matter you set breakpoint on it or not!
Forum Updated to NodeBB v4.3 + New Features

QtCreator Debugger always breaks on Qt's source, no matter you set breakpoint on it or not!

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 4 Posters 387 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.
  • S Offline
    S Offline
    Sauntor
    wrote on last edited by
    #1

    On Windows 10, if you debug your app, the QtCreator always break into some qt's source file, if there is a break in some loop, it's no possible to step into you own source code, the follow screen shot is what the problem is:
    2cdafe1b-1d7d-4161-a2d6-f93f3843eab5-image.png

    So, how can I debug my own code only?

    S 1 Reply Last reply
    0
    • S Sauntor

      On Windows 10, if you debug your app, the QtCreator always break into some qt's source file, if there is a break in some loop, it's no possible to step into you own source code, the follow screen shot is what the problem is:
      2cdafe1b-1d7d-4161-a2d6-f93f3843eab5-image.png

      So, how can I debug my own code only?

      S Offline
      S Offline
      Sauntor
      wrote on last edited by
      #2

      @Sauntor There is no this problem on linux, any one can help?

      C 1 Reply Last reply
      0
      • S Sauntor

        @Sauntor There is no this problem on linux, any one can help?

        C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        @Sauntor What is the stack backtrace when this happens?

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

          There's a log for debugger activities, View->Views->Debugger Log. You could open a bug report at bugreports.qt.io and add the contents of this log there.

          1 Reply Last reply
          0
          • cristian-adamC Offline
            cristian-adamC Offline
            cristian-adam
            wrote on last edited by cristian-adam
            #5

            I've seen this with Qt Creator's code itself. It gets stuck into loading a plugin and has no way to get further.

            My solution was to just start the application normally and then attach to the process.

            This worked fine for me, since I didn't need a breakpoint at startup.

            In the application output there is the Debug button, so you don't have to hunt down the process in the process list:
            Screenshot 2024-03-19 at 11.54.31.png

            1 Reply Last reply
            2

            • Login

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