The sort of errors that can crop up in your code usually conform to one of three types:
- Syntax Errors: These can include typographical and spelling errors, missing or mismatched quote marks, missing or mismatched parentheses/braces or case-sensitivity errors.
- Faulty Program Logic: These mistakes don't always generate error messages—the code may be perfectly valid—but your script doesn't do what you want it to. These are usually problems associated with algorithms or logical flow within the script.
This article aims to offer some straightforward tips and suggestions for debugging your code, making your programming hours more pleasurable and productive.