A newbe here. How come when I compile with an error I do not get the line or line number highlighted? I Get the errors just can't find where they are.
Asked
Active
Viewed 217 times
1 Answers
1
The line in error can often be highlighted, however because of the way the IDE plays with your source file this is not always the case.
See my post about How the IDE organizes things.
The IDE adds extra lines to your source, and then tries to hide that with #line directives. This can confuse the way error messages are handled. It is another example of the "helpful" IDE not always being helpful.
In any event, as Igor said, you can look for the line number in the error message and use that to find the error. Failing that, look at the quoted source code and search for that.
Nick Gammon
- 38,883
- 13
- 69
- 125