The Source window
The Source window is the main Debugger window. The code is read-only. The left pane of the Source window shows a hierarchical view of the objects in your code.
You can use the Source window to step through code execution line by line, to highlight breakpoints and identify the location of errors.
However, you cannot edit or repair your code in the Debugger’s Source window; to do that, you have to use the dBASE Plus Source editor.
As your program runs, source code scrolls to the line about to receive program control. You can scroll the source code without affecting program execution; the next command to be executed remains highlighted regardless of where the cursor is in the Source window.
Your program runs in the background while the Debugger retains focus. You can interact with your program by moving focus to it (use Alt+Tab to switch to it, or minimize the Debugger and click your program window). While you interact with your program, its code continues to scroll in the Source window. If you close the application, your program’s code remains open in the Source window.
You also use the Source window to locate and set breakpoints. If an error occurs, the Source window automatically scrolls to the offending line, highlighting (in blue) the line immediately following the offending line.
To correct any detected errors, return to the dBASE Plus Source editor, load your file, locate the offending line (using the dBASE Plus Source editor’s line-numbering feature) and fix the error.
To locate and move to a line number in the Source window
Choose Edit|Go To Line from the Debugger menu or right-click the Source window and choose Go To Line from the popup menu.
Specify the number in the Go To Line dialog box.
Using Go To Line to move to a line number in the Source window doesn’t affect program execution, which remains paused at the last line you stepped or traced to, or at the last executed breakpoint.
To find a text string in the current program file
Choose Edit|Find from the Debugger menu or right-click the Source window and choose Find from the popup menu.
Specify the text to find in the Find dialog box.
The search begins from the current position of the cursor and is case-insensitive. If the text is found, the Source window scrolls to the line containing the text, and the cursor moves to the beginning of the text. To find additional occurrences of the same text, choose Edit|Find Next from the Debugger menu or Find Next from the Source window popup menu.