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. Debugger continually complains "Can only evaluate during a debug session," despite being in one.
Forum Updated to NodeBB v4.3 + New Features

Debugger continually complains "Can only evaluate during a debug session," despite being in one.

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.8k 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.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by
    #1

    I'm debugging a Debug build. When I hit a breakpoint, I tried to print out some locals in the debugger console. The debugger claims it's not in a debugging session, despite the fact that the "paused debugging" indicator is shown, and I can see locals in the watch window.

    Is this a known defect? Thanks.

    0_1551824375476_debugSession.png

    jsulmJ aha_1980A 2 Replies Last reply
    1
    • StokestackS Stokestack

      I'm debugging a Debug build. When I hit a breakpoint, I tried to print out some locals in the debugger console. The debugger claims it's not in a debugging session, despite the fact that the "paused debugging" indicator is shown, and I can see locals in the watch window.

      Is this a known defect? Thanks.

      0_1551824375476_debugSession.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Stokestack What is the platform, debugger, Qt version and QtCreator version?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • StokestackS Stokestack

        I'm debugging a Debug build. When I hit a breakpoint, I tried to print out some locals in the debugger console. The debugger claims it's not in a debugging session, despite the fact that the "paused debugging" indicator is shown, and I can see locals in the watch window.

        Is this a known defect? Thanks.

        0_1551824375476_debugSession.png

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Stokestack the Debugger Console is QML related and not for C++ Debugging.

        Regards

        Qt has to stay free or it will die.

        StokestackS 1 Reply Last reply
        2
        • aha_1980A aha_1980

          @Stokestack the Debugger Console is QML related and not for C++ Debugging.

          Regards

          StokestackS Offline
          StokestackS Offline
          Stokestack
          wrote on last edited by
          #4

          @aha_1980 Thanks for the replies.

          It's Qt 5.10.12.1, Creator 4.8.1, and LLDB.

          It this is only for QML, I would expect that to be indicated somewhere. How do we interact with the real debugger then? I'm baffled as to why this pane is given such prominence when its use is so limited.

          aha_1980A 1 Reply Last reply
          0
          • StokestackS Stokestack

            @aha_1980 Thanks for the replies.

            It's Qt 5.10.12.1, Creator 4.8.1, and LLDB.

            It this is only for QML, I would expect that to be indicated somewhere. How do we interact with the real debugger then? I'm baffled as to why this pane is given such prominence when its use is so limited.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Stokestack

            How do we interact with the real debugger then?

            What do you want to do? AFAIK, Windows > Views > Debugger Log allows sending native GDB / CDB commands.

            Qt has to stay free or it will die.

            StokestackS 1 Reply Last reply
            0
            • aha_1980A aha_1980

              @Stokestack

              How do we interact with the real debugger then?

              What do you want to do? AFAIK, Windows > Views > Debugger Log allows sending native GDB / CDB commands.

              StokestackS Offline
              StokestackS Offline
              Stokestack
              wrote on last edited by Stokestack
              #6

              @aha_1980 Just want to print out values, basically. I'm finding the layout of the various panes to be very unwieldy for seeing things during debugging; the locals, for example.

              But I know there are lots of interesting debugger commands that I don't know, or have forgotten.

              aha_1980A 1 Reply Last reply
              0
              • StokestackS Stokestack

                @aha_1980 Just want to print out values, basically. I'm finding the layout of the various panes to be very unwieldy for seeing things during debugging; the locals, for example.

                But I know there are lots of interesting debugger commands that I don't know, or have forgotten.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Stokestack

                I just found a related bugreport: QTCREATORBUG-19870. You can comment and vote there :)

                Qt has to stay free or it will die.

                1 Reply Last reply
                2
                • StokestackS Offline
                  StokestackS Offline
                  Stokestack
                  wrote on last edited by
                  #8

                  Done! Thanks for the follow-up and the reference.

                  1 Reply Last reply
                  1

                  • Login

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