GDB 调试带参数程序 Posted on 2019-06-27 Edited on 2023-07-05 In Tools , GDB Views: Symbols count in article: 97 Reading time ≈ 1 mins. 使用 set args 调试带参数的程序 例如 a.out 执行命令如下 $ ./a.out -i file -o out.file $ gdb a.out (gdb) set args -i file -o out.file (gdb) r