

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


1
Debugger Definition
A program used to control the execution of another program for diagnostic purposes. Debugger Features / OperationsSingle-Stepping
Executing a program one instruction at a time. Variable Examination
Inspecting the changes in a variable's value during execution. Breakpoints
Setting temporary halting places within a program. Expression Evaluation
Determining the value of an arbitrary expression during debugging execution.
2
3
Customize…
4
5
Click somewhere lower in the code and choose Run to cursor(Ctrl+F10)
from the Debug menu (or floating toolbar).
This will cause the program to run until it reaches the line withthe code you clicked on.
Continue Trace
To continue single stepping instruction by instruction:Repeatedly hit F10 or the Step Over
button:
Each click causes one statement to be executed. When you getto the part of the code that needs keyboard input, you willneed to type a date in the execution window.The execution window is used for input and output. To switchto the execution window, look on the
menu bar
and click on the
tab with the
program name.
Halt Trace
To stop debugger execution of the program:
Choose Stop
Debugging from the Debug menu or hit Shift+F5 or the haltdebug button:
6
Locals menu) displays variables and their values from the currentexpression (the auto tab), local to the current function (the localstab). The watch pane (accessible via the Debug, Windows
Watch
Watch1 menu) allows variables & expressions to be constantlyevaluated while single-stepping through the program. In thiswindow, type month and year. As you step through the program youshould notice the value of these variables being changed.
7
To display the Breakpoint pane hit the break point buttonfrom the debug toolbar. To set an unconditionalbreakpoint, position the cursor at the point you wish tobreak execution. Now
right-click
and select Insert
Breakpoint from the popup menu. You should see a bigred dot appear to the left of the line you selected.
The previous debugging session may need to be stopped and restarted at this point in order to set breakpoints.
8