Tracing and debugging for wireless communication devices