Move debug() to DBG()

Use the new dynamic debug feature
40 files changed