Using Console to debug JavaScript
or any web-based code
Having looked at the console object before and not really understanding it, here is another go!
The Console is involked in the Microsoft Edge browser by pressing F12, this is probably similar in other browsers.
While the Console is a powerful tool, similar to AI, it is not really much help if you don't really know what you are doing in the first place!
To effectively use Console the coder is required to add addtional coding to write messages to the Console. This can be seen on my page on the Let keyword
PHP code
I have authored pages on how PHP scripts can be debugged. In many cases a PHP page will just crash-and-burn so the use of Console will be of little use.
In a similar manner to pages with Javascript any errors in the processing can be debugged in Console. However, these bugs are more likely to be what variables etc are being set correctly or otherwise and not syntactical errors. It is the syntactical errors that will cause the PHP page to fail.