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. Help with Debugger settings

Help with Debugger settings

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 343 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.
  • D Offline
    D Offline
    Driftwood
    wrote on 18 Aug 2020, 14:00 last edited by Driftwood
    #1

    I can't figure out how to stop all the excess files from popping up when I use the debugger. All I'm doing is following the creation of objects from various classes. I want the debugger to go from line to line in main.cpp. But what it's doing is pulling up various internal Qt files. For example, I have a vector of objects. When I run the debugger and step into (F11) main.cpp, many Qt vector files are pulled up and I have to step through them, too. While I can see that could be good for certain situations, this isn't one of them. I only want to step through main.cpp.

    I'm doing a Udemy C++ course where the instructor uses CodeLite. That's what I started out using. CodeLite lets me step into file instructions without throwing me into a slew of other files. But when I switched to Qt (because I want to use Qt solely), using the debugger's became a nightmare. How can I make Qt do like CodeLite during bebugging?

    I'm using Qt Creator 4.12.4 with GCC 9.3.0 and GDB which I believe is 9.1.0.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      khryleption
      wrote on 18 Aug 2020, 15:46 last edited by
      #2

      Maybe use F10, and don't step into if you won't. Read the doc of the debugger https://doc.qt.io/qtcreator/creator-debug-mode.html

      D 1 Reply Last reply 18 Aug 2020, 16:21
      2
      • H Offline
        H Offline
        HoMa
        wrote on 18 Aug 2020, 16:18 last edited by
        #3

        I think this is a similar question
        https://stackoverflow.com/questions/1448426/how-to-avoid-entering-librarys-source-files-while-debugging-in-qt-creator-with

        with the (best) answer:

        *You need to turn off auto-solib-add. From a normal gdb prompt you would type:

        (gdb) set auto-solib-add off
        In Qt Creator, under Options->Debugger->Gdb you can specify a Gdb startup script. Create a file with the "set auto-solib-add off" command in it and then set your Gdb startup script to that file.*

        1 Reply Last reply
        1
        • K khryleption
          18 Aug 2020, 15:46

          Maybe use F10, and don't step into if you won't. Read the doc of the debugger https://doc.qt.io/qtcreator/creator-debug-mode.html

          D Offline
          D Offline
          Driftwood
          wrote on 18 Aug 2020, 16:21 last edited by
          #4

          @khryleption That did the trick. Thanks.

          1 Reply Last reply
          0

          1/4

          18 Aug 2020, 14:00

          • Login

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