Skip to content

Latest commit

 

History

History
executable file
·
3 lines (2 loc) · 785 Bytes

File metadata and controls

executable file
·
3 lines (2 loc) · 785 Bytes

Debugging is the act of identifying and fixing errors in your program. Modern browsers have a JavaScript console where errors in scripts are reported. This can be found via right-clicking the site and selecting "Inspect Element". You will then see a console screen where errors are printed (if any).

Errors may differ across browsers as each browser has its own JavaScript engine. There are several tools you can use to debug JavaScript. Microsoft Script Editor is a convenient add-on for Internet Explorer that supports breakpoints and watches for debugging. If you are using other browsers, debugging locally on your computer or searching for an add-on or an online text editor is how you would approach debugging. Firefox has Firebug, which we will talk about in the next section.