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. Qt Creator: No debug with source
Qt 6.11 is out! See what's new in the release blog

Qt Creator: No debug with source

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.3k 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.
  • S Offline
    S Offline
    strombergjo
    wrote on last edited by
    #1

    I just started with Qt Creator and I am not able to debug with source info (only assembler code and no breakpoints).

    The project is a small C++ application (no Qt, references Boost libraries) based on CMake.

    I am running on a Mac and if I generate an XCode project for it debugging works fine.

    What could be wrong?

    /Johannes

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris H
      wrote on last edited by
      #2

      Are you sure you are compiling with debugging symbols enabled (the "-g" option to gcc/clang)?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        strombergjo
        wrote on last edited by
        #3

        The problem was that Qt Creator created a make script without -g (I do not know why) and there is no configuration possibility for cmake inside Qt Creator.

        After editing the resulting cmake cache afterwards I got it working.

        Thank you for the hint.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Sorry I have to nitpick here: Qt Creator does not create the Makefiles at all. CMakes does that.

          Creator starts cmake for you, yes, but it is your responsibility to "do the right thing". The format of those cmakelists.txt files is so complex that we can not really do more from inside Qt Creator.

          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