JS Code Coverage Debug
-
- UpdatedAug 1, 2024
- 4 minutes to read
- Xanadu
- Building applications
The JS Code Coverage Debug application allows administrators and application developers to log the server-side scripts triggered during a user session and then review which lines of code the system ran.
- The user session that called the script.
- The script record the system called identified by table, sys_id, and script field.
- The script record the system called identified by type and name.
- The transaction that called the script.
- The start time of the transaction.
- The contents of the script field highlighted to indicate which lines the system ran.

JS Code Coverage highlighting
The JS Code Coverage application highlights script fields to indicate whether the system ran or skipped each line.

The color of the highlight indicates how the system evaluated the code line.
Highlight color | Meaning |
---|---|
Green | This is an executable line of code that the system ran during the session. |
Red | This is an executable line of code that the system skipped for some reason. The system may have skipped an executable line of code because the necessary script conditions were not met or because the script function was never called. You may want to use the Script Debugger to determine why the system skipped the line of executable code. |
Gray | This is a non-executable line of code such as white space, code comment, or a portion of an expression split across multiple lines that cannot run on its own. |
Administrators and application developers can use this information to conduct more targeted debugging activities such as using the Script Debugger to determine why script conditions are not being met.
Activate JS Code Coverage Debug
You can activate the JS Code Coverage Debug plugin (com.glide.js.coverage) if you have the admin role.
Before you begin
Procedure
What to do next
Debug with JS Code Coverage Debug
Use JS Code Coverage Debug to record a user session and then review which server-side scripts and lines of code the system ran.
Before you begin
Procedure
Result
What to do next