The method of setting conditional breakpoint in Delphi explains _delphi

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.