Writing for such a long time code, always think that the debugger is more important than the writing program, last someone asked me, how to debug a loop in a loop condition in the position of the breakpoint. Originally wanted to be in the Delphi breakpoint setting should have a similar conditional breakpoint thing, but I also did not know how to set this condition breakpoint, so at that time to their argument is in that cycle, plus a condition to judge, write a showmessage and so on the window. And then the window after the breakpoint, this is nothing more than a method, but also a very SB's method. Until today happened to see the Delphi debugging menu, stunned found that the original Delphi can be set conditional breakpoint. The goods in View->debug windows->breakpoints, the shortcut key is Ctrl+alt+b, and then show the following
In the list of breakpoints, select the breakpoint where we want to set the condition, where the attribute condition is the logical condition used to set the conditional breakpoint, such as the logical expression I set here is i=100, and then F9, which means that the breakpoint will break down to this position at i=100 time.