One of the first things you should do is to check for typos in your code.
A type system makes that easier. The compiler catches those errors and complains that it can’t find the type.
But even so, typos sneak into your code.
Today I spent another hour debugging my code. I found out that I misspelled the URL for the API call. Arrgh.