我经常运行一个程序:
./a.out arg1 arg2 <file
我想用gdb调试它.
我知道set args功能,但只能从gdb提示符.
set args
c++ debugging gdb
c++ ×1
debugging ×1
gdb ×1