Delphi XE - 所有蓝点都排成一行 [英] Delphi XE - All blue dots are shifted with one line up

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

问题描述

从昨天开始,我的源代码中的所有蓝点(编译行)都移动了一行.因此,第一个点从 'var' 而不是 'begin' 开始,最后一个点是函数最后一个 'end' 之前的一行.

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:

如您所见,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

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

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