Debugging Methods
Posted: Mon 25. Oct 2010, 18:25
When the Compiler finds an error, it states the Line # and Col # where the error occurred.
The problem is that the Line # refers to the line in some kind of compiled form - perhaps where all the #includes are replaced with the code they represent.
In general it makes it difficult to know just where the line is.
Are there any tricks to use to find the line with the error?
Is there any possibility of modifying the compiler to provide more useful information? Even including a copy of the bad line would be a big help even if its source file was not indicated.
Thanks
Tom
The problem is that the Line # refers to the line in some kind of compiled form - perhaps where all the #includes are replaced with the code they represent.
In general it makes it difficult to know just where the line is.
Are there any tricks to use to find the line with the error?
Is there any possibility of modifying the compiler to provide more useful information? Even including a copy of the bad line would be a big help even if its source file was not indicated.
Thanks
Tom