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. Qt Creator doesn't set breakpoints properly with GDB
QtWS25 Last Chance

Qt Creator doesn't set breakpoints properly with GDB

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
bugc++gdbdebuggingdebug
3 Posts 2 Posters 1.4k 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
    Andrew Smith
    wrote on 7 Jul 2018, 16:09 last edited by
    #1

    Hi all,
    I've a problem with Qt Creator, it can't set breakpoints properly, I tried manually debugging with GDB in the command prompt and I could do it, but Qt Creator has better debugging (simpler and easier).
    OS: Windows 10
    Build system: mingw32-make
    Compiler: MinGW 5.3.0 32bit for C++
    Debugger: GNU GDB 7.10.1 for MinGW 5.3.0 32bit

    Video of how I try debugging:
    Note: this isnt my program, its just to show that even a simpler hello world is broken
    https://youtu.be/jvAzB8T8Puc

    A 1 Reply Last reply 7 Jul 2018, 18:00
    0
    • A Andrew Smith
      7 Jul 2018, 16:09

      Hi all,
      I've a problem with Qt Creator, it can't set breakpoints properly, I tried manually debugging with GDB in the command prompt and I could do it, but Qt Creator has better debugging (simpler and easier).
      OS: Windows 10
      Build system: mingw32-make
      Compiler: MinGW 5.3.0 32bit for C++
      Debugger: GNU GDB 7.10.1 for MinGW 5.3.0 32bit

      Video of how I try debugging:
      Note: this isnt my program, its just to show that even a simpler hello world is broken
      https://youtu.be/jvAzB8T8Puc

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 7 Jul 2018, 18:00 last edited by
      #2

      Hi @Andrew-Smith,

      do you see something obvious in the debugger log? (Windows > Views > Debugger Log)

      Have you build a debug version?

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Andrew Smith
        wrote on 7 Jul 2018, 18:36 last edited by
        #3

        By build a debug version do you mean adding -DDEBUG -g to CFLAGS in my makefile?
        Hooray! Adding the -DDEBUG -g flags to my makefile fixed it!
        Thank you @aha_1980! I googled for this but nothing really came up, thanks!

        1 Reply Last reply
        1

        3/3

        7 Jul 2018, 18:36

        • Login

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