When running a form from the Verj.io Studio, you can view any error logs, debug statements, and log statements in the Execution Log. This can be found under View in the menu at the top of the designer.
Use the log()
function at any point in a script to write a message to the Execution Log. This can include field values to help monitor field values at different points in your code. For example, the code:
fields.total_cost.value = 10.00;
log("The starting cost is £" + fields.total_cost.value);
fields.total_cost.value += 5.75;
log("The final cost is £" + fields.total_cost.value);
This will write the following to the Execution Log when the script is run:

When running a form outside of the Verj.io Studio, logs will not be shown in the Execution Log window. Instead, these can be found in the server log files found in the <ebase-installation-directory>/UfsServer/tomcat/logs folder.