Flexible debug messages for small and embedded applications