I usually run a program as :
./a.out arg1 arg2
I would like to debug it using gdb.
I am aware of the set args
set args
Pass the arguments to the run command from within gdb.
run
$ gdb ./a.out (gdb) r < t Starting program: /dir/a.out < t