Reputation: 4827
this is odd, as debugging code, it seems that the Delphi is not pointing to the right line of code, after break point.
is there a way to fix this?
Upvotes: 0
Views: 130
Reputation: 25678
You need to make sure the source file you're looking at corresponds to the code that's actually being executed. Check the following:
There was a question here recently that unveiled an other way of hitting that error: If some of the lines in your PAS file have abnormal line terminators, you might see a constant offset between the executed line of code and the actual line of code in the program.
Upvotes: 6
Reputation: 612934
This happens when the .pas file that the editor has loaded is not the one used to generate the .dcu used by the debugger.
Delete all your .dcu files and rebuild.
Upvotes: 4