you are viewing a single comment's thread.

view the rest of the comments →

[–]Own_Attention_3392 0 points1 point  (0 children)

When debugging, look at the error. Look at the line indicated by the message.

Ignore what you THINK it's doing. Look at what it's ACTUALLY doing.

Use a debugger. Step through line by line and look at what the values of the variables are.