Pycharm experience (5) breakpoint debugging

Source: Internet
Author: User

For more information about the settings before running and debugging, see the previous article helloword.

1. Set breakpoints

In front of the Code, after the line number, click to set the breakpoint. As follows:

2. debug the breakpoint
Click the Green Beetle icon (it seems that the beetle has become a dedicated debug icon) for breakpoint debugging.

Click it to run to the first breakpoint. The variable information before the breakpoint is displayed.

Click Step Over or press F8 to continue running and reach the next breakpoint:

Supplement:

For other operations and functions of breakpoint, you can move the mouse over the corresponding button and take a look. As follows:

Summary:

This is PyCharm's breakpoint function, which is easy to use.

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.