- Starting your program with arguments: gdb -tui --args love_calc john jane
- Setting a breakpoint in a specific file (in your huge project): b filename.cpp:linenum, i.e. b posix_thread.cpp:25
- Stepping is s or (step) stepping into is stepi and continue is c.
- Examining variables is done with p variable_name, i.e. p argv[1]
The above image shows the result of the commands.
There's a small guide from gnu on tui single key mode & a quick guide if you need more than I have shown here.
No comments:
Post a Comment