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. What is the Debugger Console for in Qt Creator?
Forum Updated to NodeBB v4.3 + New Features

What is the Debugger Console for in Qt Creator?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 3 Posters 9.1k Views 3 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by
    #1

    Hi.
    Using the debugger (when debugging a program on my Pi2 from a Debian 8 host) works more or less.
    But what is the Debugger Console for, and how is it used?
    Whenever I try to type something in there, it gives "Can only evaluate during a debug session".
    Thanks!

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

      Hi,

      Do you mean what is described here ?

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

        Hi SGaist,
        Thanks for reacting, and sorry for my late reply. I forgot about this one.

        The thing is, I can do the remote debugging on my Raspberry Pi2 using GDB, and I can set breakpoints, inspect variables, etc. but there is this "Debugger Console" tab in Qt Creator, with a prompt: see this image:
        http://pasteboard.co/ay7f7U9zj.jpg

        I was wondering about this Debugger console. Can it be used during a remote GDB debugging session? How do I use it? What are the valid commands I can enter at the prompt, etc...

        Thanks!

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

          It's been a long time since I've done remote debugging but I don't see why you couldn't do it. The commands should likely be the same as you would use with GDB.

          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
          • DiracsbracketD Offline
            DiracsbracketD Offline
            Diracsbracket
            wrote on last edited by
            #5

            Found some info about the Console Debugger here. It uses JavaScript expressions!

            1 Reply Last reply
            0
            • yeckelY Offline
              yeckelY Offline
              yeckel
              wrote on last edited by
              #6

              This Debugger Console is most probably just for QML debugging as suggest the text: "Context: Global QML Context" in the screenshot in http://doc.qt.io/qtcreator/creator-quick-tour.html

              1 Reply Last reply
              2

              • Login

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