Preparing a Program for Debugging