# LYX debugging does not allow going to error in document

Lyx produces an error message when compiling, but I cannot find where the error is in the document. When hovering over the errors it says clicking it would take me to the error in the document but it's not working. This makes it very difficult to debug the errors. Please help if you have found a solution to this problem.

The complete log view is shown below, but I have similar equations throughout the document and couldn't find which one is erroneous.

• Welcome to the TeX.SE. I see an error. Peraphs you have written into your code \hobx instead of \hbox. – Sebastiano Jul 14 '19 at 20:34
• @Sebastiano No, that is not the actual error. It's just meant as an example. – Torbjørn T. Jul 14 '19 at 20:35
• Zelalem, you could try clicking "View complete log", and find the first occurrence of "undefined control sequence" in that file. Then you can see the entire error, and it would show you which command is the cause of the problem. – Torbjørn T. Jul 14 '19 at 20:36
• @TorbjørnT. I not use LyX. I thinked that was as the .log file of the errors. Excuse me. I have misunderstood. – Sebastiano Jul 14 '19 at 20:37
• @TorbjørnT, I tried to look into the complete log it shows part of the equation with the error. The problem is I have plenty of similar equations throughout the document so I can't tell which one is wrong. – zola Jul 14 '19 at 20:39

The ams alignments such as align read their entire body as a macro argument which means that without using lyx any errors that occur within the body of the alignment will be reported at the line number for \end{align} This probably makes it hard for a system like lyx to be more precise.