Logging the data to debug issues
In this section, we'll describe various ways to log data to debug development and runtime issues. When you develop applications, logging the data at relevant places is very important. It will help you to debug issues very easily. But make sure you don't log sensitive information such as bank details, credit card details, passwords, and so on due to security reasons.
We'll use logging for different layers to debug issues, such as the following:
- JavaScript
- Action Chains
- Business Objects
In the subsequent sections, we'll see each of the aforementioned loggings in detail.
JavaScript logging
JavaScript is used to write custom logic or to filter out the data. In past chapters, we created some JavaScript code to build custom logic. If you want to debug issues during development and runtime, you can use the following one-line code in JavaScript to log the hardcoded string along with variables:
console.log...