while using gdb for a big code having various module i face a lot of problem . how to use it.
when debugging larrge codes having various modules i am not able to link the m and understand whats happening
I don't really understand. Are you saying you can't step thru the code?
Last edited on
1. Build your code for debug.
2. Pass it to gdb the command line.
3. Set a break point:
4. Start the app with args, it'll stop at the break point:
run arg1 arg2
5a: Step into functions with:
5b: Step over functions with:
6. View variables with:
7. Look at the call stack with backtrace:
That's plenty to begin with.
On Linux you can use DDD (data display debugger), a frontend for gdb: http://www.gnu.org/software/ddd/