[Qt-creator] access to gdb console

Stefan Seefeld stefan at seefeld.name
Tue Jan 5 15:54:26 CET 2021


On 2021-01-05 2:39 a.m., André Hartmann wrote:
> Hi Stefan,
>
> you probably want to comment and vote on
> https://bugreports.qt.io/browse/QTCREATORBUG-19870 as ultimate solution.
>
> Until then, you can use the left part of Views > Views > Debugger Log to
> insert GDB commands.
>
> Note that you can also add gdb startup commands at Tools > Options >
> Debugger > GDB.

How does qt-creator support applications that interact with the user via 
stdin/stdout ? Does it ?

My use-case is this: I'm embedding a Python interpreter into my (Qt) 
application which is attached to stdin / stdout. This allows me to 
interact with the application using Python commands. For automated 
testing I'm providing a set of Python scripts that are fed to the 
program (one per test). But the real power comes from interactive 
testing, which allows me to control and introspect the application state 
from a Python interpreter.

It would be very valuable to run all of this within qt-creator, so I 
could follow along with the debugger.  Outside qt-creator I'm already 
able to start this from a gdb prompt, so I can debug this whole setup. 
All that's missing is the ability to do this from within qt-creator, so 
https://bugreports.qt.io/browse/QTCREATORBUG-19870 looks indeed like the 
solution to this.

Thanks,

Stefan
-- 

       ...ich hab' noch einen Koffer in Berlin...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20210105/7aaa7898/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .signature.png
Type: image/png
Size: 2754 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20210105/7aaa7898/attachment-0001.png>


More information about the Qt-creator mailing list