To add JavaScript debugging statements to your integrator.io scripts, call a console object method, as follows:
| Method | Description | Level |
| console.debug(string1, string 2, …) | Fine-grained informational events that are most useful to debug an application. | Debug |
| console.info(string1, string 2, …) | Equivalent methods for printing informational messages to the execution log. | Info |
| console.log(string1, string 2, …) | ||
| console.warn(string1, string 2, …) | Output shown in potentially harmful situations. | Warn |
| console.error(string1, string 2, …) | Log error events that might still allow the application to continue running. | Error |
Integration runtime debugging is available only for export and import hooks; debug statements are not yet supported for transformation and filter scripts.
Each method will write to the script’s execution log, as follows:
- Debug – statements written only when the debug level is applied
- Info – always written
- Warn – always written
- Error – always written