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. Breakpoints within the framework code
QtWS25 Last Chance

Breakpoints within the framework code

Scheduled Pinned Locked Moved General and Desktop
qt creatordebuggingbreak pointvs2013
6 Posts 4 Posters 2.7k 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.
  • O Offline
    O Offline
    OldDeath
    wrote on last edited by koahnig
    #1

    Hi,
    is there any way one can set break points within the code of the qt framework itself from within qt creator?

    Any help would be greatly appreciated!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What platform are you running on ?

      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
      • O Offline
        O Offline
        OldDeath
        wrote on last edited by OldDeath
        #3

        Win7 x64 using a VS2013 toolchain with a Qt library I've compiled myself.

        Do you need any more details?

        K 1 Reply Last reply
        0
        • O OldDeath

          Win7 x64 using a VS2013 toolchain with a Qt library I've compiled myself.

          Do you need any more details?

          K Offline
          K Offline
          koahnig
          wrote on last edited by koahnig
          #4

          @OldDeath
          Check under "tools"->"options"->"build&run" that the "Kits" and the "Debuggers" are correctly set up.
          Can you start the debugger with F5?

          You can use the debugger only when you have "debug" compilation. Release mode compilations it looks sometimes as you can debug, but it will not stop at breakpoints set with F9 or other possibilities.

          Note: I am using MiinGW on Win 7 64 bit, but assume it is the same with the VS tool chains.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by Chris Kawa
            #5

            If you built Qt yourself and didn't move the build dir or the source dir afterwards (important!) then you should already be able to debug into Qt sources.
            If not, then go to Tools->Options->debugger->General and in the "Source Path Mapping" section click "Add Qt sources" and add the Src directory of Qt there. Now you should be able to debug into Qt sources and set breakpoints in it like in your own code.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              To add to my fellow and maybe a silly question but since you build Qt yourself did you do a debug_and_release build ?

              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

              • Login

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