Differences between version 10 and previous revision of DeBugging.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 10 | Last edited on Monday, February 23, 2004 2:13:21 pm | by JohnMcPherson | Revert |
Older page: | version 9 | Last edited on Thursday, February 5, 2004 3:01:42 pm | by JohnMcPherson | Revert |
@@ -10,9 +10,9 @@
!!useful gdb(1) commands:
;bt full: give a complete backtrace of a program. If a program crashes __this__ is what the programmer will want from you.
;print: This lets you print out various expressions, eg: "print node" "print *node" "print node->key" "print node->next->key" etc.
-;break: This lets you set breakpoints, eg: "break main"
+;break: This lets you set breakpoints at functions or lines in the source code
, eg: "break main" or "break sourcefile.cpp:55
"
;run: run a program up until a break point.
;step: step over a function call
;next: step into a function call
;frame: change which frame you are working on. eg: "frame 1" will change the scope to frame 1.