4D v14.3Watch Pane |
||||||||||||||||||||
|
4D v14.3
Watch Pane
|
a: | Undefined |
2. You step one line. The program counter is now set to the line b:=a+1. At this point, the Line Objects theme displays:
a: | 1 | |
b: | Undefined |
3. Again, you step one line. The program counter is now set to the line c:=a+b. At this point the Line Objects theme displays:
c: | Undefined | |
a: | 1 | |
b: | 2 |
The Line Objects theme is a very convenient tool—each time you execute a line, you do not need to enter an expression in the Custom Watch Pane, just watch the values displayed by the Line Objects theme.
This theme is composed of the following subthemes:
Note: You can modifiy String, Text, Numeric, Date, and Time variables; in other words, you can modify the variables whose value can be entered with the keyboard.
Arrays, like other variables, appear in the Interprocess, Process, and Locals subthemes, depending on their scope. The debugger displays each array with an additional hierarchical level; this enables you to obtain or change the values of the array elements, if any. The debugger displays the first 100 elements, including the element zero. The Value column displays the size of the array in regard to its name. After you have deployed the array, the first sub-item displays the current selected element number, then the element zero, then the other elements (up to 100). You can modifiy String, Text, Numeric, and Date arrays. You can modify the selected element number, the element zero, and the other elements (up to 100). You cannot modify the size of the array.
Reminder: At any time, you can drag and drop an item from the Watch pane to the Custom Watch Pane, including an individual array element.
This theme displays predefined constants provided by 4D. like the Constants page of the Explorer window. The expressions from this theme cannot be modified.
This theme lists the tables and fields in the database; it does not list subfields. For each Table item, the Value column displays the size of the current selection for the current process as well as (if the Table item is expanded) the number of locked records. For each Field item, the Value column displays the value of the field (except picture, subtable, and BLOB) for the current record, if any. In this theme, the field values can be modified (there is no undo), but the table information cannot.
This theme lists the local semaphores currently being set. For each semaphore, the Value column provides the name of the process that sets the semaphore. This list may be empty if you do not use semaphores. The expressions from this theme cannot be modified. Global semaphores are not displayed.
This theme lists the sets defined in the current process (the one you're currently tracing); it also lists the interprocess sets. For each set, the Value column displays the number of records and the table name. This list may be empty if you do not use sets. The expressions from this theme cannot be modified.
This theme lists the processes started since the beginning of the working session. The value column displays the time used and the current state for each process (i.e., Executing, Paused, and so on). The expressions from this theme cannot be modified.
This theme lists the process named selections that are defined in the current process (the one you’re currently tracing); it also lists the interprocess named selections. For each named selection, the Value column displays the number of records and the table name. This list may be empty if you do not use named selections. The expressions from this theme cannot be modified.
This theme displays general information, such the current Default Table (if any). The expressions from this theme cannot be modified.
This theme displays statistics regarding the use of tables, index pages, and named selections that are loaded in 4D’s cache. The expressions from this theme cannot be modified.
Addtional options are provided by the context menu of the Watch pane. To display this menu:
The context menu of the Watch pane is shown here:
The following is a view of the Watch pane with all options selected:
Product: 4D
Theme: Debugging
Call Chain Pane
Custom Watch Pane
Debugger
Debugger Shortcuts
Source Code Pane
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14.3)
Parent of : Watch Pane ( 4D v14 R4)