Debug a Service Catalog variable

Use the Variable Watcher tab to monitor changes in the state and the value of a Service Catalog variable due to catalog client scripts, catalog UI policies, and catalog data lookups. You can diagnose and resolve issues related to such changes, and track client-side scripting errors in this tab. For information on debugging actions of a catalog item variable, see Debug actions on catalog item variables.

Before you begin

Role required: Administrator(admin) or catalog administrator(catalog_admin)

Procedure

  1. Navigate to Settings > Developer and enable the Java Script and Field Watcher field. The JavaScript Log tab and Field Watcher tab are displayed in a pane at the bottom of the page. See JavaScript log and Field Watcher .
  2. Navigate to Service Catalog > Catalog Definitions > Maintain Items.
  3. Select a catalog item and click Try it.
  4. Right-click a variable and select Watch Variable. The debug icon is displayed beside the variable, and the Field Watcher tab in the bottom pane is replaced with the Variable Watcher tab.
  5. Edit the fields in the Variable Watcher tab.
    Field Description
    Item (Read only) The current catalog item.
    Variable (Read only) The variable that is being watched.
    Type (Read only) Type of the variable.
    Create roles (Read only) The user type that can create values for the variable.
    Write roles (Read only) The user type that can edit values for the variable.
    Read roles (Read only) The user type that can read values for the variable.
    Attributes (Read only) Attributes of the variable.
    Reference (Read only) Reference table for the variable. Applicable for reference variables.
    Reference qual (Read only) Qualifiers to restrict data that is available in the field. Applicable for list collector, lookup multiple choice, and lookup select box, and reference variables.
    Delete roles (Read only) The user type that can delete values for the variable.
    All Select this field to display the action log of the variable due to catalog client scripts, data lookups, and catalog UI policies.
    Catalog Client Script Select this field to display the action log of the variable due to catalog client scripts.
    Data lookup Select this field to display the action log of the variable due to data lookups.
    Catalog UI Policy Select this field to display the action log of the variable due to catalog UI policies.
    Figure 1. Variable Watcher tab
    Screenshot for the Variable Watcher tab
  6. To watch another variable, right-click that variable and select Watch Variable.
    Note: You can watch only one variable at a time.
  7. To stop watching a variable, right-click the variable and select Unwatch Variable.
  8. To clear the logs, click Clear log .
  9. To resize the pane, click Small, Medium, or Large.
  10. To close the pane, click Close .
    Note: When you close the pane, the Java Script and Field Watcher field under Settings > Developer is disabled.