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 lambdas: Don't see captured variables in
Forum Updated to NodeBB v4.3 + New Features

Debugging lambdas: Don't see captured variables in

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 544 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.
  • M Offline
    M Offline
    Mate
    wrote on last edited by Mate
    #1

    When I debug in Qt Creator, I don't see the captured variables, therefore it is quite hard to debug.

    I'm using Qt v 5.9.6, Qt Creator 5.0.3.

    Debugger: auto-detected CDB
    alt text

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @Mate said in Debugging lambdas: Don't see captured variables in:

      Qt v 9.6

      Wow, we're at 6.2.x here. Time traveller?

      You have to step over this line because before this 'i' is not defined nor initialized.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M JonBJ 2 Replies Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @Mate said in Debugging lambdas: Don't see captured variables in:

        Qt v 9.6

        Wow, we're at 6.2.x here. Time traveller?

        You have to step over this line because before this 'i' is not defined nor initialized.

        M Offline
        M Offline
        Mate
        wrote on last edited by Mate
        #3

        @Christian-Ehrlicher
        Regarding the version I missed the main version, thanks. I edited the post.
        The variable i is not relevant here, if I step over, still I won't see the neither the this keyword's member variables nor the test string.

        JonBJ 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @Mate said in Debugging lambdas: Don't see captured variables in:

          Qt v 9.6

          Wow, we're at 6.2.x here. Time traveller?

          You have to step over this line because before this 'i' is not defined nor initialized.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Christian-Ehrlicher said in Debugging lambdas: Don't see captured variables in:

          Time traveller?

          Qt v9.6 will support quantum computing, and this question comes from another universe :)

          1 Reply Last reply
          0
          • M Mate

            @Christian-Ehrlicher
            Regarding the version I missed the main version, thanks. I edited the post.
            The variable i is not relevant here, if I step over, still I won't see the neither the this keyword's member variables nor the test string.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Mate
            Do we know whether this might be a CDB issue/limitation?

            M 1 Reply Last reply
            0
            • JonBJ JonB

              @Mate
              Do we know whether this might be a CDB issue/limitation?

              M Offline
              M Offline
              Mate
              wrote on last edited by
              #6

              @JonB

              I tried to find issues regarding your assumption, but without any result. When I attach the debugger from Visual Studio, there I can see the captured variables, so currently this is the only way for me to debug lambdas in our qt development

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Then cdb has some issues with these constructs. Maybe you can try to update cdb (don't know if there's a new one though)

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                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