I usually use the browser for this.
In Safari... Preferences > Advanced > Show Develop menu in menu bar
There's also a debug mode that can be enabled with Terminal...
defaults write com.apple.Safari IncludeInternalDebugMenu 1
There's also the developer version of Firefox...
Although, that seems similar to the regular Firefox – but with a cool blue icon.
Anyway, in Safari, I right-click to "Inspect element" and that brings up a lot of tools. If there's an error, an icon appears. Clicking that icon usually reveals a detailed explanation about the problem...
I covered part of this very early in the Hype Book. I thought I might be hitting the reader too early with some advanced techniques. Now I'm glad that I did it. It might save people from frustration.