如何让断点做到“定点停车”
注:Steven原创
比如一个循环i从 1 到 100 的程序,如何跟到 i=55 的代码.
程序:
1:for i := 0 to 100 do
2: Caption := IntToStr(I); //断点行
做法:
在菜单 View -> Debug Windows -> BreakPoints (ctrl + alt + b),选择你设置的断点,右击选择 properties,在 condition 里面写 i = 55 (或其他条件,但要注意返回是个 bool 类型),关闭,运行试试 :)