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. [SOLVED]Unable to debug my Application
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Unable to debug my Application

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 4 Posters 9.1k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on 28 Apr 2014, 15:48 last edited by
    #1

    Hi,

    I unable to make a debug to my application although I already installed all the requirements as shown below.

    How can fix this issue?

    I always get this error message whenever I run in debug mode:

    [code]This does not seem to be a "Debug" build.
    Setting breakpoints by file name and line number may fail.

    Section .debug_info: Not found.
    Section .debug_abbrev: Not found.
    Section .debug_line: Not found.
    Section .debug_str: Not found.
    Section .debug_loc: Not found.
    Section .debug_range: Not found.
    Section .gdb_index: Not found.
    Section .note.gnu.build-id: Found.
    Section .gnu.hash: Found.
    Section .gnu_debuglink: Not found.[/code]

    !http://i.imgur.com/RFLFikq.jpg(http://i.imgur.com/RFLFikq.jpg)!

    EDIT: I'm sure that I'm using debug build.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Apr 2014, 20:04 last edited by
      #2

      Hi,

      Are you using the system Qt ? If you so, some distributions have dbg packages that are separated from dev packages.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbnoimi
        wrote on 29 Apr 2014, 04:27 last edited by
        #3

        [quote author="SGaist" date="1398715444"]Hi,

        Are you using the system Qt ? If you so, some distributions have dbg packages that are separated from dev packages.

        Hope it helps[/quote]

        I'm using Qt with its default options in addition to that I already installed gdb as shown above:

        • Qt 5.2.1
        • Qt Creator 3.1.0
        • Mint 16 x64 Cinnamon
        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbnoimi
          wrote on 29 Apr 2014, 04:31 last edited by
          #4

          !http://i.imgur.com/wb1Cr8u.png(http://i.imgur.com/wb1Cr8u.png)!

          1 Reply Last reply
          0
          • D Offline
            D Offline
            davschul
            wrote on 29 Apr 2014, 05:03 last edited by
            #5

            Hi,

            Verify that your "qmake build configuration" is set to debug. You can do that in the projects page -> <your Kit> -> Build -> Build Steps -> qmake

            !http://i.imgur.com/uLZvJ6J.png()!

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mbnoimi
              wrote on 29 Apr 2014, 05:09 last edited by
              #6

              [quote author="davschul" date="1398747799"]Hi,

              Verify that your "qmake build configuration" is set to debug. You can do that in the projects page -> <your Kit> -> Build -> Build Steps -> qmake

              !http://i.imgur.com/uLZvJ6J.png()![/quote]

              It's in debug mode.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                clochydd
                wrote on 29 Apr 2014, 08:11 last edited by
                #7

                Hi,

                I'm running Qt on Kubuntu and I have checked all your settings - it's identical and debugging should work.
                Can you debug one of the examples or will you see the same error messages then?

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mbnoimi
                  wrote on 29 Apr 2014, 15:22 last edited by
                  #8

                  [quote] Can you debug one of the examples or will you see the same error messages then?[/quote]

                  Oops; the debugger works find with "Hello World" while it doesn't with my project!

                  BTW, I've many static libs sub-projects I may set one of these projects to build in release mode only... Do you've any suggestion how can I discover what's wrong in my project?

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mbnoimi
                    wrote on 29 Apr 2014, 15:44 last edited by
                    #9

                    OMG; I fixed this issue.

                    I added CONFIG += release inside one of the sub-projects...hehehehehehe

                    Thanks a lot for help.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clochydd
                      wrote on 29 Apr 2014, 17:41 last edited by
                      #10

                      You are welcome!
                      Happy coding :)

                      1 Reply Last reply
                      0

                      1/10

                      28 Apr 2014, 15:48

                      • Login

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