pycharm 使用心得(五)断点调试

WBOY
Release: 2016-06-06 11:30:32
Original
1486 people have browsed it

【运行】和【调试】前的设置,详见前面的文章,helloword。

1,设置断点

在代码前面,行号的后面,鼠标单击,就可以设置断点。如下:

pycharm 使用心得(五)断点调试

2,调试 断点
点击那个绿色的甲虫图标(似乎甲虫已经成为debug专用图标了),进行断点调试。

pycharm 使用心得(五)断点调试

点击后,会运行到第一个断点。会显示该断点之前的变量信息。

pycharm 使用心得(五)断点调试

点击Step Over 或者按F8,我们继续往下运行,到下一个断点:

pycharm 使用心得(五)断点调试

补充:

断点的其他操作,和功能,大家可以把鼠标移到相应的按钮上,看一下,试试便知。如下:

pycharm 使用心得(五)断点调试

总结:

这就是PyCharm的断点功能,还是很简单易用的。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!