Skip to content

Instantly share code, notes, and snippets.

@joezuntz
Last active December 18, 2015 15:29
Show Gist options
  • Save joezuntz/5804576 to your computer and use it in GitHub Desktop.
Save joezuntz/5804576 to your computer and use it in GitHub Desktop.
Debugging Checklist
1. make clean; make; run
2. check version control for changes you forgot you made
3. check exact command being run
4. check outputs are actually new
5. check inputs are actually what you expect. make plots
6. gdb --args "run_program with_args"
run
7. valgrind run_program with_args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment