Y
Y
York Nofname2017-06-22 17:03:14
Qt
York Nofname, 2017-06-22 17:03:14

How to implement input via stdin while debugging in Qt Creator?

Hello.
Situation :

  • console program
  • getting data from user via stdin
  • Debugging in Qt Creator with GDB
  • noob misunderstanding of input through stdin during debugging
  • forced hardcode of variables requiring input from the user

Please help me see the obvious, thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tolik, 2017-06-25
@Diel

You can open a program in one window, enter data, etc., while in another run gdb and do an attach PID by substituting the process ID of your running program

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question