Lightweight watchpoint implementation for debugging