184_notes:troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
184_notes:troubleshooting [2022/04/20 16:33] woodsna1184_notes:troubleshooting [2022/05/06 22:06] (current) – [Math] woodsna1
Line 1: Line 1:
 ====== Coding: When it all Goes Wrong ====== ====== Coding: When it all Goes Wrong ======
-A programming project isn't complete without an error that seems impossible to fix. Glowscript's error messages can be vague. If you find yourself completely lost in a coding project, the best bet is usually to take a step back. Go back to your pseudocode and comments, and compare them to the code you have written. Is each line doing exactly what it should be? Be particularly careful with loops and if statements, consider the location of each line within a loop.+A programming project isn't complete without an error that seems impossible to fix. Glowscript's error messages can be vague. If you find yourself completely lost in a coding project, the best bet is usually to take a step back. Go back to your pseudocode and comments, and compare them to the code you have written. Is each line doing exactly what it should be? Be particularly careful with loops and if statements, and consider the location of each line within a loop.
  
 ===== Debugging ===== ===== Debugging =====
Line 28: Line 28:
 </code> </code>
 === Divide by Zero === === Divide by Zero ===
-If your code contains division by 0, you may get a confusing error message. Double-check that variables are properly initialized, correctly positioned within loops, etc+If your code contains division by 0, you may get a confusing error message. Double-check that variables are properly initialized, correctly positioned within loops, and that any counter variables are being incremented in the correct locations.
 ==== Loops ==== ==== Loops ====
 If the conditional initially evaluates to False, the loop will never execute. If the conditional initially evaluates to False, the loop will never execute.
  • 184_notes/troubleshooting.1650472410.txt.gz
  • Last modified: 2022/04/20 16:33
  • by woodsna1