标记的调试器行与对变量的影响没有相关性
这很奇怪,作为调试代码,Delphi 似乎没有指向断点之后正确的代码行。
有办法解决这个问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要确保您正在查看的源文件与实际正在执行的代码相对应。检查以下各项:
最近这里有一个问题,揭示了解决该错误的另一种方法:如果 PAS 文件中的某些行具有异常的行终止符,您可能会看到执行的代码行与实际代码行之间存在恒定的偏移量。程序。
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.
当编辑器加载的 .pas 文件不是用于生成调试器使用的 .dcu 的文件时,就会发生这种情况。
删除所有 .dcu 文件并重建。
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.