德尔福XE - 所有的蓝点都移动一行 [英] Delphi XE - All blue dots are shifted with one line up

查看:167
本文介绍了德尔福XE - 所有的蓝点都移动一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自昨天以来,我的源代码中的所有蓝点(编译行)都以一行排列。
所以,第一个点从'var'而不是'begin'开始,最后一个点是一个函数的最后一个结束之前的一行。

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.

我删除了除DPR,PAS,DFM和DPRJ之外的所有文件(以DCU开头),并重新编译。但是点仍然转移。
我该如何解决?这使得步骤=逐步调试几乎不可能。

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

推荐答案

可能是文件已损坏,在一行上具有适当的行尾组合(#13#10)。在整个文件中是一行错误还是从单元中间的某个地方开始?

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?

从Delphi 2007开始(也许已经是Delphi 2005),你可以在工具 - 选项 - 编辑器选项 - 源选项中启用复选框显示换行符,检查代码行。换行符如下所示:

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:

As你可以看到,一个CR本身就不被认为是一个换行符,并且搞乱了可执行行点的同步

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

这篇关于德尔福XE - 所有的蓝点都移动一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆