Add ws_dbg() macro

... for doing ws_log() calls only when compiling with DEBUG

Targets #401