Fix debug() macro, avoid exposing internal variables.
Don't send trailing \0 on UDP using string message.

Uses fast macro for strlen, Also added a debug log for connect().