Differences between version 4 and previous revision of DeBugging.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, August 25, 2003 3:19:25 pm | by JohnMcPherson | Revert |
Older page: | version 3 | Last edited on Tuesday, July 30, 2002 7:01:36 pm | by PerryLorier | Revert |
@@ -1,4 +1,6 @@
+You might also be interested in the CommonProgrammingBugs page.
+
Debugging under Linux is done mostly by using gdb(1).
If you want to debug a program:
# Compile it with debugging support. This is done by adding the -g option to the gcc(1) command line. If you are using make(1), you can export CFLAGS=-g, you should also set -Wall too, but only because it's a good idea in general. An example: gcc -g -Wall foo.c -o foo