Visual Debugging with DDD
By Andreas Zeller, March 01, 2001
Source Code Accompanies This Article. Download It Now.
If a debugger is a tool that lets you "see" what's going on in a program, then DDD is the tool that lets you see the most.
Mar01:
<b>(a)</b>
(gdb) tbreak foobar.c:422
Breakpoint 3 at 0x80492b0: file foobar.c, line 422.
(gdb) info breakpoints
...
(gdb) jump foobar.c:422
Line 422 is not in `list_test(int)'. Jump anyway? (y or n)
<b>(b)</b>
Line 422 is not in `list_test(int)'. Jump anyway? (y or n) no
Not confirmed.
(gdb) delete 3
(gdb) info breakpoints
...
(gdb) _
Example 2: (a) Do we really want to move the execution position? (b) No, we don't want to move it.