Debug

Method

  • Detective Analogy
  • Isolate the bug.
    • Extract information from error report.
      • Understand cryptic error codes.
    • Unit testing.
    • Leaks
      • Profiling
  • Fix it.

Logging

  • Log important events
  • Use good Logging framework
    • Prints source (line number etc..)
  • Destinations: Corresponding to each experiment, create a log file with a time stamp automatically, perhaps of the same name.