Solved What is the Debugger Console for in Qt Creator?
-
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! -
Hi,
Do you mean what is described here ?
-
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.jpgI 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!
-
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.
-
Found some info about the Console Debugger here. It uses JavaScript expressions!
-
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