Weston Goodwin wrote:
After you compile a program with the -g (C++) option how do you use the
debugger?
As you haven't said which of many debuggers interest you, the advice
would be to choose one and read its documentation, then if necessary ask
questions on a relevant forum.