Theme: Programming

Debugging compiled programs

Level: Beginner

Typical duration: 1 day

Lectures: 4h

Labs: 4h

Course code: PR11

Learn how to efficiently debug compiled programs in Linux - from simple software to complex frameworks

Training topics

Debugging software in Linux
Strategies for dealing with complex software

In this course we focus on debugging programs written in C, C++ or Fortran, with a strong hands-on component. Starting with simple programs, we demonstrate common problems and how to locate them. Further, we demonstrate how to use debuggers in large-scale software projects. We also discuss tips and caveats concerning bug-free software. An initial discussion of compilers is offered, with a particular focus on options which influence debugging and performance. We discuss tools commonly used for debugging, including GDB and Intel tools such as Inspector XE.



After the course, the students will:
- Be able to locate bugs in software
- Understand compiler options influencing debugging
- Know how to use widely available debugging tools (GDB, IDB etc)

Training concepts

Compiled code in Linux - C, C++, Fortran
Debuggers and their role
Available tools and usage
Compiler basics
Compilers and options for debugging
Caveats when debugging and compiling