官术网_书友最值得收藏!

Debugging and Profiling Python Scripts

Debugging and profiling play an important role in Python development. The debugger helps programmers to analyze the complete code. The debugger sets the breakpoints whereas the profilers run our code and give us the details of the execution time. The profilers will identify the bottlenecks in your programs. In this chapter, we'll learn about the pdb Python debugger, cProfile module, and timeit module to time the execution of Python code.

In this chapter, you'll learn about the following:

  • Python debugging techniques
  • Error handling (exception handling)
  • Debugger tools
  • Debugging basic program crashes
  • Profiling and timing programs
  • Making programs run faster
主站蜘蛛池模板: 墨玉县| 兴义市| 丁青县| 东方市| 修武县| 绥阳县| 普陀区| 涡阳县| 新建县| 布尔津县| 永兴县| 淄博市| 东阳市| 滨州市| 札达县| 莲花县| 旺苍县| 镇原县| 黄梅县| 连江县| 商丘市| 华蓥市| 瓦房店市| 吐鲁番市| 平邑县| 兴化市| 诸暨市| 班玛县| 青河县| 中山市| 嘉义市| 尼玛县| 牡丹江市| 湘潭县| 五寨县| 宜兴市| 万安县| 潢川县| 温州市| 安国市| 乐昌市|