Create debug.c

This file contains code for writing debug trace logs for a program