After writing code for such a long time, I have always believed that debugging programs is more important than writing programs. Last time someone asked me how to debug a breakpoint at a certain loop condition in a loop. I originally thought that there should be something similar to a conditional breakpoint in Delphi's breakpoint setting, but I never knew how to set this conditional breakpoint, so the explanation I gave them at the time was to add a condition in the loop. Judge and write a pop-up window such as Showmessage. Then set a breakpoint after the window pops up. This is nothing more than a method, and it is also a very SB method. Until today, I accidentally looked at the debugging menu of Delphi, and I was shocked to find that it turns out that Delphi can set conditional breakpoints. This product is in view->debug windows->BreakPoints, the shortcut key is Ctrl+Alt+B, and then the display is as follows
In this breakpoint list, select the breakpoint we want to set the condition for. The attribute Condition is the logical condition used to set the conditional breakpoint. For example, the logical expression I set here is i=100, and then F9 represents the breakpoint. It will break to this position when i=100.