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 whe
I just went through something like this yesterday and recursed through a bunch of "help" commands in gdb because I couldn't find exactly what I needed on the Internet.
I used set variable *your_variable* = *your desired input* after I had started gdb and began running my code. Worked like a charm.
I know this is late, but maybe it'll help someone else.