add code for cpu debugging.