Classes and utilities for creating debugging code