COMP 202 Lecture Notes - Lecture 19: Bracket, Compile Time, Semicolon
hwpark22 and 40159 others unlocked
100
COMP 202 Full Course Notes
Verified Note
100 documents
Document Summary
Comp 202 lecture 19 debugging and scanner. Errors: there are 4 main kinds of errors, stylistic errors, compile time errors, run time errors, logical errors, stylistic errors. These errors do not effect functionality of the code but rather make it hard for a person to read/follow the process. Generally are syntax problems (missing semi-colon, extra curly bracket: compile time errors, run time errors. Caught at run time and depend on input/the values of the variables. Array index out of bound, dividing by zero: logical errors. But when you run the code it will simply not work": finding logical errors (debugging) The print statement or lazy man"s debugger: use print statement to discover the value of certain variables at given locations. Step over clicking this will execute the current line of code and step to the next line in the current method.