如何在Delphi断点属性中使用条件
我发现当达到某些特定条件时,嵌套循环会失败,不知何故,当 I = 1、J = 3 和 k = 5 时,
我尝试右键单击断点,并在我设置的条件下设置
(I = 1) 和 (J = 3) AND (K = 5)
无论如何,断点不会停止...
出了什么问题?
I found that a nested loop fails when some particular condition is reached, somehow when I = 1, J = 3 and k = 5
I tried to right click on the breakpoint and in the condition I set
(I = 1) and (J = 3) AND (K = 5)
anyway the breakpoint doesn't stop...
What is wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在满足条件之前在一行代码上设置断点并按 F8 单步执行?
Set breakpoint on a line of code before the condition is met and step through with F8?
我刚刚在 D2007 中尝试过,效果很好。你用的是什么版本?
您是否考虑过,由于条件不满足,可能无法到达断点?
I've just tried that in D2007 and it works fine. what version are you using?
Have you considered that the breakpoint may not be reached because the condition is not being met?
我认为您确实将断点添加为中断断点。
要验证这一点,
You did add the breakpoint as a Breaking breakpoint I assume.
To verify this
可能根据您的代码
可能永远不会同时获得这个值
May be according to your code
may never get this values at same time