June 2017
Beginner
1296 pages
69h 23m
English
run, stop, cont and print CommandsWe begin our study of the debugger by investigating breakpoints, which are markers that can be set at any executable line of code. When application execution reaches a breakpoint, execution pauses, allowing you to examine the values of variables to help determine whether logic errors exist. For example, you can examine the value of a variable that stores the result of a calculation to determine whether the calculation was performed correctly. Setting a breakpoint at a line of code that is not executable (such as a comment) causes the debugger to display an error message.
To illustrate the features of the debugger, we use application AccountTest (Fig. E.1), which creates and manipulates ...