Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
To debug a script, you can use a built-in debugger.
Tip |
---|
Role required: admin. |
To do this, complete the steps below:
- Navigate to System Definition → Server Scripts.
- Click New and fill in the fields.
- Click Save or Save and Exit to save the script, or click Run to execute it without saving.
Also, you can open Open any record form in this debugger by calling the Open in script item in the hamburger menu.
Using With this functionality, you are able tocan:
- locate breakpoints within the script body
- comment some strings to skip one or more operations
- display the object value before inserting or updating
- display the variable value when executing.
It is recommended to use SimpleSystem methods to display values when debugging a server-side script:
- To display them on a client-side:
- To put them into the Main Log (sys_log) dictionary, which is intended as the main log storage:
Info |
---|
Another way to open the debugger is the following:
But use this way only on the instances that have no sensetive data. |