fix compiling with -DNDEBUG and added debug() overload like for format()