Editing module text during the debugging

How do I navigate to module procedures and functions?
How do I use context input of expressions?
How do I perform module syntax check?
How do I use Syntax Assistant?
How do I use Debugger?

The module text editor in Designer combines the capabilities of the text editor and the module editor, and provides context tips and real-time help on 1C:Enterprise script operators and additional debug options.

Navigating to module procedures and functions

To navigate to a procedure, on the Text menu, click Procedures and functions.

This opens the full list of procedures and functions used in the module being edited. Select a procedure or function and click Go To.

To navigate to a procedure or function, you can use the list of procedures and functions on the Module toolbar. When you select a procedure or function name, the cursor is placed at the beginning of the selected procedure or function.

If you place the cursor inside the procedure or function body, the list displays the name of this procedure or function.

You can use bookmarks in the module text.

Context tips for module text input

The text editor provides the options for context input of expressions based on system objects, their properties, methods, procedures and functions, object names specified in the configuration, as well as variables, procedures, and functions defined in the ordinary application module, managed application module, session module, common modules (procedures and functions only), external connection module, applied object modules, manager modules, command modules, and form modules. The text template is only included in the list if it has the autoreplacement string specified.

You can input text by selecting it from the pop-up menu displayed at the current cursor position (the pop-up menu might be shifted if the screen borders are too close)

To open the list, press Ctrl+Space at any moment while entering an expression. The list is also displayed automatically once you type "." (dot) after an expression that represents an object with properties or methods available (provided that the context tips are enabled).

The list content depends on the module execution context.

When you enter a text or select it from the list, if the text forms an expression with properties or methods available, once you type "." (dot), the list of available properties and methods for this expression is displayed automatically.

Module syntax check

You can check the module being edited for correct use of the 1C:Enterprise script syntax.

To check the syntax, on the Text menu, click Check syntax. When checking syntax in a regular module (that is, not an a ordinary application module, not a managed application module, and not a common module), first the ordinary application module is checked, then the managed application module and the common modules, and finally the module being edited.

Any errors that are found are listed in the message box together with the error locations (the numbers of module lines where errors are found). If you move the pointer over an error message, the pointer turns into a magnifying glass. To navigate to the module line that caused the error, double-click the error message. If the module containing the error is not open, it is opened automatically.

Syntax Assistant

To get real-time help on 1C:Enterprise script operators, use the Syntax Assistant.

Debugger

When you edit module text in Designer, the Debug menu items are available.

You can set and remove breakpoints in the module editor.

To set a breakpoint, place the cursor anywhere in the module line where you want to add a breakpoint and then, on the Debug menu, click Breakpoint. A breakpoint icon appears in the utility area along the left margin. You can also set a breakpoint by clicking in the utility area next to the required line.

To remove a breakpoint, on the Debug menu, click Disable breakpoint, or click in the utility area.

To pause the execution process upon a particular condition, on the Debug menu, click Conditional breakpoint and enter the condition in the dialog box that is opened.

To remove all breakpoints, on the Debug menu, click Clear all breakpoints.

1C:Enterprise Developer's Community