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. [SOLVED]noob: can't debug
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]noob: can't debug

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 7.6k 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.
  • J Offline
    J Offline
    jfabiani
    wrote on last edited by
    #1

    I'm importing xTuple.pro (and the associated files) into QT 5.1 Qt Creator on Linux. I got it to compile and it runs very well. The problem is I can't debug anything. I set a breakpoint and it does not stop.

    &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"
    Is all I get in the output.

    But I can debug the examples. So does anyone have a suggestion as to what is happening here?????

    Johnf

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to compile your project in debug mode, then run with debugger in Qt Creator.

      (Z(:^

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jfabiani
        wrote on last edited by
        #3

        This maybe a duh question: How do I force the QT Creator 2.8.1 to build a "debug mode". It makes sense what you say but I don't what I need to do to cause the debug build.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jfabiani
          wrote on last edited by
          #4

          I solved the problem - thanks.

          Since this was a project I imported and there were a few CONFIG statements that may have prevented the debug.

          So I removed all the statements and did a qmake and build.

          I works now.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            guru
            wrote on last edited by
            #5

            I also got same kind of error (&“warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n”), but, Here I findout error place, that was an Array index, i.e, I created a list of array of [10] numbers and error occured in first index of array. i.e, Array[0] values.. How can I solve this?

            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