Debugging C

Contents:

  • Introduction
  • Things about C/C++
  • Errors and Exceptions
  • Finding Memory Issues
  • Debugging
  • Exercises
Debugging C
  • »
  • Debugging C/C++
  • View page source

Debugging C/C++

Contents:

  • Introduction
    • Prerequisites
    • Installation
    • Learning Outcomes
  • Things about C/C++
    • Datatypes: Static and strong(ish) typing
    • Pointers
    • Macros
    • Misplaced semicolon
    • Virtual functions and inheritance
    • Returning by Reference or Pointer
    • Exception in a Destructor
    • Using a freed pointer or old reference
  • Errors and Exceptions
    • Manual error handling in C
    • C++ Exceptions
  • Finding Memory Issues
    • Valgrind
    • drMemory
  • Debugging
    • gdb
    • Debugging in Visual Studio Code
  • Exercises
    • Exercise 1: A segfault
    • Exercise 2: Divide by Zero (C++)
    • Exercise 3: The double pendulum (C)
Next

© Copyright 2022, Jarno Rantaharju.

Built with Sphinx using a theme provided by Read the Docs.