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. How to set up Qt debugging for Makefile projects?
QtWS25 Last Chance

How to set up Qt debugging for Makefile projects?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 3.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.
  • P Offline
    P Offline
    Puchatek
    wrote on last edited by
    #1

    I'm trying to get debugging for my makefile project to work. Debugging works fine on Qt projects that use qmake.
    I'm running Mac OS X Mountain Lion, Qt 4.7.4 and Qt Creator 2.4.1, and trying to debug a .c project.

    When I set up break points and tell debugger to run it runs ignoring break points - although it stops on segment fault causing lines, so it runs after all, and not just fails to start. Here's a pastebin link to first ~150 lines of debug log
    http://pastebin.com/SiiNULV9
    It contains information about some errors, but I'm a debugging newbie, and don't understand them, and even less what to do about them. I suspect it's something with gdb not working with python (it complains about undefined command 'python'), but then again even though similar errors are there when working with qmake projects, debugger seems to function for the latter:

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2

      Did you create your binary with debug information, i.e. did you pass -g to the compiler command line?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Puchatek
        wrote on last edited by
        #3

        Such a simple solution! And shows how little I know about debugging. Thank you for your help, andrep.

        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