Defensive programming and debugging

Course/Event Essentials

Event/Course Start
Event/Course End
Event/Course Format
Online
Live (synchronous)

Venue Information

Country: Belgium
Venue Details: Click here

Training Content and Scope

Scientific Domain
Technical Domain
Level of Instruction
Intermediate
Advanced
Sector of the Target Audience
Research and Academia
Industry
Public Sector
HPC Profile of Target Audience
Application Developers
Language of Instruction

Other Information

Supporting Project(s)
EuroCC2/CASTIEL2
Event/Course Description

Topics covered

All code contains bugs, finding and fixing them is boring. In this training, best practices are presented to reduce the number of bugs in your code. You will also learn about debuggers and debugging techniques to find bugs more efficiently.

  • best practices in coding, code style, error handling
  • using compiler options to warn about potential issues
  • unit and functional testing
  • using a debugger (breakpoints, inspection, watchpoints, tracing  …)
  • zoo of bugs
  • optional: debugging parallel code

Previous knowledge

  • experience programming C, C++, or Fortran
  • familiarity with the bash command line
  • optional: experience using MPI and/or OpenMP