Debuggin the process of identifying and removing errors from computer hardware or software.
Every now and then you will make a change and it won’t show on the website. Or worse the site might even be broken. Then you need to debug the issue. For the most part it will probably be a mistake in your YAML. Remember that YAML cares about spaces in the beginning of lines. There exists online YAML validators. It might be worth pasting your text into one of those.
Look at the latest changes
If you look at the commit history of your project (e.g.
https://github.com/gbif/hp-legume/commits/master), you can see what have changed and also what commit broke the build. Commits (changes) that build successfully will have a little green tick, and failed builds will have a red cross. You can then select the commit that caused the failure and see what was changed.
Check the build server
You can also see if your project deployed properly by going to the build server and locate your project and select it. Once you have done that the sidebar will show you the build history. A red dot next to the latest build indicates that it failed.
The project builds fine, but the site is not as I expected
These errors are more tricky to find, but again it can be a good idea to look at your latest changes in the commit history. So far we have seen these issues:
- Invalid file name. If you are expecting a webpage, then your file should probably end with with
- You forgot the front matter - the area between
- You forgot that indentation matters in YAML - you forgot to indent completely, or used tabs to do so.
- You forgot to quote a value with characters that confused YAML. E.g. a colon. See also this Stack overflow question
Ask for help
If you cannot figure out what is the cause of the error, then ask. The mailing list is a good place to do so.