Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Debugger continually complains "Can only evaluate during a debug session," despite being in one.
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.
@Stokestack What is the platform, debugger, Qt version and QtCreator version?
@Stokestack the Debugger Console is QML related and not for C++ Debugging.
@aha_1980 Thanks for the replies.
It's Qt 184.108.40.206, 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.
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.
Stokestack last edited by 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.
Done! Thanks for the follow-up and the reference.