Debugging is the act of checking and testing your code for errors. It is often the most important step and should be preformed regularly.
Types of Debugging:
- Verbose debugging: This method shows tons of output that tells the scripter what variables are set to, why loops ended and when functions stopped. This is generally the easiest way to debug.
- Live debugging: This consists in running your script on a script builder or Roblox Studio environment to draw out errors. To test this way you must deliberately try to cause scripting errors.
- Auto debugging: In this method you construct a bot function that runs though the script and tries to generate as many possible outcomes as it can. These outcomes are then used to catch errors.