chapter10: debugging and profiling