Monitoring ProcScript Modules

The Uniface Debugger allows you to monitor and control the execution of ProcScript.

To select and monitor ProcScript modules, you can:

  • Browse the component structure.
  • View the ProcScript call stack.
  • Open call stack items in the Debugger Browser to view them in context.
  • View the value of ProcScript expressions.
  • View the context of ProcScript errors.

Viewing ProcScript Information

Although the main window of the Uniface Debugger allows you to control and monitor ProcScript execution, you can also use the View menu to open other windows to provide additional information or different view of the information.

Uniface Debugger View Menu
Menu Item Description
Quick Watch Enables you calculate the value of a valid ProcScript expression, add the expression to the Watches pane of the Debugger, or do both
Select Watches Enables you to select fields, variables, and ProcScript functions to add to the Watches pane.
Browser Opens the Browser, enabling you to navigate, select, and view ProcScript in the context of the component or object structure.
Call Stack Displays the call stack, which is a list of the ProcScript modules that have activated or called another module, and their associated component names and line numbers. Double-click an item in the call stack to open it in the Browser.
Error Context Displays the contents of $procerrorcontext whenever a ProcScript error occurs ($procerror< 0). The Error Context window shows the context of only the latest ProcScript error.
Message Log Displays the Message Frame for the application being debugged.
Settings Enables you to select diagnostic settings and breakpoints.
Preferences Enables you to select startup, display, and close preferences, and to load and save Debugger state information.

During debugging, the location of the current ProcScript instruction is displayed in the heading of the Module pane of the Debugger main window along with this information:

  • Structure type (Component, Library, or Menu), followed by the structure name.
  • For a component, the entity name and field name ({EntityName{.FieldName}}), as applicable, followed by the short trigger name in brackets
  • ProcScript module type, name, and statement number, separated by a colon (:).

Related Topics