My personal experience in bug hunting has taught me a few things:
- Actually READ the error message… usually that is exactly the problem.
- Google search the error message and see what other people have done in similar situations.
- Ask for help from other developers sooner rather than later.
- Take a break and do an entirely different activity away from your computer and the answer often comes then.