June 2006
Intermediate to advanced
1344 pages
42h 52m
English
Sometimes you will need to execute a program line-by-line to find and fix logic errors. Stepping through a portion of your program this way can help you verify that a method’s code executes correctly. The commands you learn in this section allow you to execute a method line-by-line, execute all the statements of a method or execute only the remaining statements of a method (if you have already executed some statements within the method).
1. | Setting a breakpoint.
Set a breakpoint at line 16 by left clicking in the margin indicator bar (Fig. C.16).
Figure C.16. Setting a breakpoint in the program. |
2. | Starting the debugger. Select ... |
Read now
Unlock full access