Many years ago, debugging a JavaScript code base was all about console.log() calls sprinkled in one or more functions under investigation. Sometimes you’d realize that the problem was not in those functions but in one called by them, thus even more console.log() calls would be added to the code.
Full article