title: How to debug a program that takes user input from stdin with GDB?
body: <p>I have a program and I am trying to debug it using gdb. Inside the program I have methods that require the user to enter an input using stdin. How can I enter this input when I am in gdb? So that I can trace how my methods work?</p>