Surround traces with #if debug conditionals