When using Google Chrome, I want to debug some JavaScript code. How can I do that?
From the console in Chrome, you can do console.log(data_to_be_displayed).
console.log(data_to_be_displayed)