Thinking in C and *nix (CSC 282 2015S) : Outlines

Outline 08: Using Macros for Logging


Held: Thursday, 12 March 2015

Back to Outline 07 - Debugging with gdb. On to Outline 09 - Automating Work with Make.

Summary

We consider how C macros might allow us to write a system that helps us do better print-style debugger.

Related Pages

Overview

Administrivia

Cool uses of Macros and/or CPP

Requirements for a Simple "Debug by Printing" Environment

Messages that are easy to enable/disable

Print the values of expressions, along with the expression

Print each statement as we execute it

Generalized optional output (like printf)

Show nesting through indentation?