开发者

Delphi XE - All blue dots are shifted with one line up

开发者 https://www.devze.com 2023-03-19 01:30 出处:网络
Since yesterday, all blue dots (compiled lines) in my source code are shifted with one line up. So, the first dot starts at \'var\' instead of \'begin\' and the last dot is one line before the last \'

Since yesterday, all blue dots (compiled lines) in my source code are shifted with one line up. So, the first dot starts at 'var' instead of 'begin' and the last dot is one line before the last 'end' of a function.

I deleted all files (starting with DCUs) except DPR, PAS, DFM and DPRJ and recompiled. But the dots are 开发者_StackOverflow社区still shifted. How can I fix this? It makes the step=by-step debugging almost impossible.


It could be that the file is corrupted so that you don't have proper line end combination (#13#10) on one line. Is the "one line up error" throughout the file or does it start somewhere in the middle of the unit?

Beginning with Delphi 2007 (maybe already Delphi 2005) you can check the line ends in your code by enableing checkbox Show line breaks in Tools - Options - Editor options - Source options. The line breaks look like this:

Delphi XE - All blue dots are shifted with one line up

As you can see, a CR on its own is not considered a line break and messes up the synchronization of the executable line dots


Try closing Delphi then deleting all *.identcache files.

I have a batch file at the root of my Delphi projects directory that recursively deletes all identcache files.


Try This:

  1. Open the unit in an editor with capabilities to change codification, like Notepad++.

  2. Code/save the file as ANSI.

  3. Open or recharge the file in the Delphi IDE.

The dots must be in the right place.

0

精彩评论

暂无评论...
验证码 换一张
取 消