Lightweight debugging