With the integrated debugger, you can find and fix errors in your applications. The integrated debugger lets you control program execution, monitor variable values and items in data structures, and modify data values while debugging.
The integrated debugger can track down both runtime errors and logic errors. By running to specific program locations and viewing the variable values, the functions on the call stack, and the program output, you can monitor how your program behaves and find the areas where it is not behaving as designed.You can also use exception handling to recognize, locate, and deal with errors. Exceptions are classes like other classes, except, by convention, exceptions begin with a leading E rather than a T.