Step 1: Check the internet for answers. No, seriously, Google it.
Step 2: Ask a colleague who's been there, done that, and got the t-shirt.
Step 3: Look for the bug in plain sight. Is the error message on fire?
Step 4: Consult the ancient art of bug-hunting tomes.