June 2025
Intermediate to advanced
837 pages
24h 50m
English
Even when implementing smaller applications, sooner or later, you’ll reach the point at which you need to find and fix a bug in your own source code. Most of these errors are caused by incorrectly assigned variables or logic errors within the application. For this reason, when troubleshooting, you’re usually concerned with the values of certain variables and the flow of the application logic.
In the simplest case, you insert console.log statements at certain points in the source code, which helps you output the values of the variables and check the individual flow steps of your source code. In Listing 3.14, you can see what the web server example can look like with such debug outputs. In addition, as you ...
Read now
Unlock full access