Use #if instead of #ifdef.
The debug output declaration and function.