This question already has an answer here:

I obtained a finished with exit code 2 using kile when compiling the bibliography. I presume there is an error in how I've written the bibliography (.bib) file.

Is there a sort of debugger which indicates what is actually the error?

marked as duplicate by David Carlisle, Guido, lockstep, Claudio Fiandrino, Martin Schröder Jun 27 '13 at 10:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 7 down vote accepted

You have to open the file .blg that was produced. In that file there are all the indications about the compilation of the bibliography and, if any, the detailed description of the errors.

Not the answer you're looking for? Browse other questions tagged or ask your own question.