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. Debug Qt program failed
Forum Updated to NodeBB v4.3 + New Features

Debug Qt program failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.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.
  • L Offline
    L Offline
    leodundun
    wrote on last edited by
    #1

    When I debug the qt widget program(empty program also tried) on mac, there are no breakpoints hit. And I got this application output: debugging starts, debugging has finished.
    The environment is : Qt 5.2.1 , Qt Creator 3.0.1, xcode 7.3.1 , clang compiler, lldb debugger.
    I have searched the solution on line for a long time, but the problem hasn't solved, I really need help ,thanks very much!

    L 1 Reply Last reply
    0
    • L Offline
      L Offline
      leodundun
      wrote on last edited by
      #2

      The first time to debug a program, it gets error:
      "An error occured when attempting to write to the LLDB process.
      For example, the process may not be running, or it may have closed its input channel".

      1 Reply Last reply
      0
      • Jesse KaukonenJ Offline
        Jesse KaukonenJ Offline
        Jesse Kaukonen
        wrote on last edited by Jesse Kaukonen
        #3

        Does lldb work outside Qt Creator? Does debugging work with gdb? If you load the executable in gdb, do the debug symbols get loaded?

        Are you using macdeployqt? To use debug with macdpeployqt, you need to pass the --use-debug-libs flag. In my case this broke some things in my bundled app as the Qt libs inside the Frameworks folder were now looking for debug versions of the libraries and I had to use install_name_tool on each of them to change the paths. If you end up with this problem I can share the script I wrote for fixing this.

        http://www.jessekaukonen.net

        1 Reply Last reply
        0
        • L leodundun

          When I debug the qt widget program(empty program also tried) on mac, there are no breakpoints hit. And I got this application output: debugging starts, debugging has finished.
          The environment is : Qt 5.2.1 , Qt Creator 3.0.1, xcode 7.3.1 , clang compiler, lldb debugger.
          I have searched the solution on line for a long time, but the problem hasn't solved, I really need help ,thanks very much!

          L Offline
          L Offline
          leodundun
          wrote on last edited by
          #4

          The issue seemed to resolved itself when updating qt creator from version 3.0.1 to 3.1.0, the lldb worked well, but the gdb still broken

          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