Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugging with QtCreator doesn't work correctly
Forum Updated to NodeBB v4.3 + New Features

Debugging with QtCreator doesn't work correctly

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 383 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hey, does anyone have an idea why debugging with QtCreator 9.0.2 (I have this issues for some months now and also tried other versions) is this weird https://streamable.com/si0ba9?
    I compiled my application with -g3;-Og but many values are optimised out, I cant set breakpoints on certain lines and my Expression Evaluator doesn't work.

    Thanks in advance

    L andrA 2 Replies Last reply
    0
    • ? A Former User

      Hey, does anyone have an idea why debugging with QtCreator 9.0.2 (I have this issues for some months now and also tried other versions) is this weird https://streamable.com/si0ba9?
      I compiled my application with -g3;-Og but many values are optimised out, I cant set breakpoints on certain lines and my Expression Evaluator doesn't work.

      Thanks in advance

      L Offline
      L Offline
      lacuna
      wrote on last edited by
      #2

      @Creapermann

      Just to proof I have the same issues with QtCreator 9.0.1 in combination with Qt 5.15.12.
      But I don't when I use Qt 5.15.9. May you try another Qt Version - just for verification.

      ? 1 Reply Last reply
      0
      • L lacuna

        @Creapermann

        Just to proof I have the same issues with QtCreator 9.0.1 in combination with Qt 5.15.12.
        But I don't when I use Qt 5.15.9. May you try another Qt Version - just for verification.

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @lacuna
        Sadly I am stuck with using the Qt version that my sytem comes with (since I currently need to use my system's libraries), which is Qt 5.15.8

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
        • ? A Former User

          Hey, does anyone have an idea why debugging with QtCreator 9.0.2 (I have this issues for some months now and also tried other versions) is this weird https://streamable.com/si0ba9?
          I compiled my application with -g3;-Og but many values are optimised out, I cant set breakpoints on certain lines and my Expression Evaluator doesn't work.

          Thanks in advance

          andrA Offline
          andrA Offline
          andr
          wrote on last edited by
          #4

          This cannot really depend on the Qt version. It can depend on the compiler flags and the actual version of compiler and debugger. Can you try -O0 -g and see whether it makes a difference? Also, which compiler and debugger is this using?

          ? 1 Reply Last reply
          0
          • andrA andr

            This cannot really depend on the Qt version. It can depend on the compiler flags and the actual version of compiler and debugger. Can you try -O0 -g and see whether it makes a difference? Also, which compiler and debugger is this using?

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @andr
            Using -O0 -g really makes a difference, the values are not optimized out anymore. I don't quite understand why this is, since I thought that g3 with -Og would create the most debug information, but at least it works now.

            The problem with the expression evaluator still remains though, it behaves the same as in the video. Do you have an idea why that might be?

            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