Expression

How to use the Expression field
How to add an expression to the immediate window
How to view expressions of String type
How to export the evaluation result to a text or spreadsheet document

Use the Expression dialog box to view variable and expression values and value types. To open the dialog box, on the Debug menu, click Evaluate Expression.

In the Expression field, enter a 1C:Enterprise script expression or select it from the list history.

If you open the Expression dialog box while the cursor is located inside an expression, the expression is automatically added to the Expression field.

To evaluate the expression, click the Evaluate button. The evaluation result is displayed in the Result field.

If the expression value is an object, to view the object attributes, in the Result field, expand the object and locate the required attribute.

You can specify values of the following types interactively: Number, String, Date, Boolean, and Undefined.

You can also specify a value by providing an expression whose result is assigned to the original expression. To enter an expression, use the Set expression as a value command. You can enter any 1C:Enterprise script expression that is acceptable as a right part of an assignment statement at the current script execution point. The expression can include local variables and properties.

The Add to immediate window button adds the expression to the immediate window, so that you can monitor the expression result during the debugging. The expression is added to a new row of the immediate window. If the immediate window is not displayed, it is opened once you add the expression.

If an expression has String type, or it is a value collection, or an array, the Show value in a new window command bar button becomes available. It displays the number of collection items, while each row displays the collection item index.

For viewing long strings, a window that displays the entire string is available.

You can export the tabular section of the evaluation result to a text or spreadsheet document by clicking the Output list button. If the value being evaluated has a tree structure, only expanded branches are exported.

For viewing value collections or arrays, a window with a tabular section where columns represent attributes and rows represent values is available. If any of the values in this table is, in turn, a value collection or an array, you can view it in a new window.

1C:Enterprise Developer's Community