I have c++ program which I run by passing string with it.
g++ -o a main.cpp -lpthread
and execute it with ./a "Good nice"
But how I debug it with gdb? main.cpp calling functions from other files which are included in it.
gdb ./a "Good nice"
takes "--" as files and says no such file!
I want to debug line by line!