If I want to debug my program I call it like this:
gdb ./myprog
$ run < input.txt
But now I want to execute it line by line, but how can I do this? I know the step
command but I can only call it, if the run command was called before. Do I have to stop the execution directly after the run command?