Watching program data items: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
__TOC__
__TOC__
<span class="f_Para">The </span><span class="f_GUIlabel">Watch Window</span><span class="f_Para"> box can display the current value of one or more program code data items. It is located in the lower right corner of the main window, unless it is [[open_external_window.html|opened in a separate window]] external to the Client. </span>
<span class="f_Para">The </span><var>Watch Window</var><span class="f_Para"> box can display the current value of one or more program code data items. It is located in the lower right corner of the main window, unless it is [[Opening an external window|opened in a separate window]] external to the Client. </span>


<span class="f_Para">The </span><span class="f_GUIlabel">Watch Window</span><span class="f_Para"> is updated as the program runs, each time execution is paused by the Debugger. If the value of a watched item is changed by the last statement execution, it is highlighted:</span>
<span class="f_Para">The </span><var>Watch Window</var><span class="f_Para"> is updated as the program runs, each time execution is paused by the Debugger. If the value of a watched item is changed by the last statement execution, it is highlighted:</span>


[[File:watchval1s_zoom61.gif|254x111px|watchVal1s]]<span class="f_Para"> </span>
[[File:watchval1s_zoom61.gif|254x111px|watchVal1s]]<span class="f_Para"> </span>
Line 8: Line 8:
<span id="watchable_items" class="hmanchor"></span><span class="f_Para">The following types of items can be “watched”: </span>
<span id="watchable_items" class="hmanchor"></span><span class="f_Para">The following types of items can be “watched”: </span>


* <span class="f_ListBul1">%variable scalar values (for example: </span><span class="f_Monospace">%x, %y</span><span class="f_ListBul1">) </span>
* %variable scalar values (for example: <span class="term">%x, %y</span>)
*  
* Elements of %variable arrays (for example: <span class="term">%names(%I), %names(34)</span>)
* <span class="f_ListBul1">Elements of %variable arrays (for example: </span><span class="f_Monospace">%names(%I), %names(34)</span><span class="f_ListBul1">) </span>
* Image items (including image array elements) (for example: <span class="term">%input:name</span>)
*
* Global variables
* <span class="f_ListBul1">Image items (including image array elements) (for example: </span><span class="f_Monospace">%input:name</span><span class="f_ListBul1">) </span>
* Database fields
*
*<var>Model 204</var> parameters
* <span class="f_ListBul1">Global variables </span>
* Elements of $lists and Stringlist and Arraylist objects
*
* Counts of items in a $list or Stringlist or Arraylist
* <span class="f_ListBul1">Database fields </span>
* Certain $function calls: $STATUS and $STATUSD, $CURREC, $FIELDGROUPID, and $FIELDGROUPOCCURRENCE
*
* Structure elements (for example: </span><span class="term">%address:city</span><span class="f_ListBul1">)
* <span class="f_Product">Model 204</span><span class="f_ListBul1"> parameters</span>
* Object variables (for example: </span><span class="term">%xmlInput:serial</span><span class="f_ListBul1">)
*
* <span class="f_ListBul1">Elements of $lists and Stringlist and Arraylist objects </span>
*
* <span class="f_ListBul1">Counts of items in a $list or Stringlist or Arraylist</span>
*
* <span class="f_ListBul1">Certain $function calls: $STATUS and $STATUSD, $CURREC, $FIELDGROUPID, and $FIELDGROUPOCCURRENCE </span>
*
* <span class="f_ListBul1">Structure elements (for example: </span><span class="f_Monospace">%address:city</span><span class="f_ListBul1">) </span>
*
* <span class="f_ListBul1">Object variables (for example: </span><span class="f_Monospace">%xmlInput:serial</span><span class="f_ListBul1">) </span>


<span class="f_Para">These subsections follow: </span>
<span class="f_Para">These subsections follow: </span>


* <span class="f_SimpleListText">[[add_item_to_watch_window.html|Adding and removing Watch Window items]] </span>
: [[Add item to watch window|Adding and removing Watch Window items]]
*
: [[Saving and restoring Watch Window contents|Saving and restoring Watch Window contents]]
* <span class="f_SimpleListText">[[saving_restoring_watch_window.html|Saving and restoring Watch Window contents]] </span>
: [[Getting a detailed view of the value of a watched item|Getting a detailed view of the value of a watched item]]
*
: [[Watching Model 204 fields|Watching Model 204 fields]]
* <span class="f_SimpleListText">[[get_detailed_view_of_watched_value.html|Getting a detailed view of the value of a watched item]] </span>
: [[Watching global variables|Watching global variables]]
*
: [[Watching object variables|Watching object variables]]
* <span class="f_SimpleListText">[[watching_fields.html|Watching Model 204 fields]] </span>
: [[Watching $lists, Stringlists, and Arraylists|Watching $lists and Stringlists]]
*
: [[Watching class member Variables|Watching class member variables]]
* <span class="f_SimpleListText">[[watch_global_variables.html|Watching global variables]] </span>
*
* <span class="f_SimpleListText">[[watch_object_vars.html|Watching object variables]] </span>
*
* <span class="f_SimpleListText">[[watching_$lists.html|Watching $lists and Stringlists]] </span>
*
* <span class="f_SimpleListText">[[watching_class_member_variable.html|Watching class member variables]] </span>


<span class="f_EndTopic"> </span>
[[Category:Debugger Home]]
[[Category:Debugger Home]

Latest revision as of 17:13, 1 November 2022

The Watch Window box can display the current value of one or more program code data items. It is located in the lower right corner of the main window, unless it is opened in a separate window external to the Client.

The Watch Window is updated as the program runs, each time execution is paused by the Debugger. If the value of a watched item is changed by the last statement execution, it is highlighted:

watchVal1s

The following types of items can be “watched”:

  • %variable scalar values (for example: %x, %y)
  • Elements of %variable arrays (for example: %names(%I), %names(34))
  • Image items (including image array elements) (for example: %input:name)
  • Global variables
  • Database fields
  • Model 204 parameters
  • Elements of $lists and Stringlist and Arraylist objects
  • Counts of items in a $list or Stringlist or Arraylist
  • Certain $function calls: $STATUS and $STATUSD, $CURREC, $FIELDGROUPID, and $FIELDGROUPOCCURRENCE
  • Structure elements (for example: %address:city)
  • Object variables (for example: %xmlInput:serial)

These subsections follow:

Adding and removing Watch Window items
Saving and restoring Watch Window contents
Getting a detailed view of the value of a watched item
Watching Model 204 fields
Watching global variables
Watching object variables
Watching $lists and Stringlists
Watching class member variables