company logo

Define watch variable (WATCH)

The command defines a watch expressions for the current OSI function. Watch expressions may be defined as operation path, property name, parameter or local or global variable. When an expression return a complex data type, all attribute values for the complex data type are displayed. When expression is an operation path, the operation result will be displayed Watch variables are displayed always when a break point within the OSI function is reached.

Calling the function without expression will show all active watch expressions. Watch expressions can be removed by calling dw or deletewatch.

Prameters:

  • expression- variable, operation path or expression to be evaluated")

Syntax:

  watch|w [expression]

Examples:

  w first_name      // display 'first_name' value for selected instance

  w parm1.name      // display the 'name' attribute of parameter 'parm1'

  w myFunction      // display the result of calling myFunction