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

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
主站蜘蛛池模板: 浏阳市| 广西| 郎溪县| 昭觉县| 安西县| 沾益县| 九龙坡区| 高州市| 辽阳县| 读书| 泸溪县| 芮城县| 佛学| 宝兴县| 垣曲县| 德庆县| 新竹市| 南安市| 潼南县| 敦煌市| 鹿泉市| 荥阳市| 岳阳县| 平利县| 开远市| 扶余县| 句容市| 依安县| 伊川县| 肥城市| 康定县| 边坝县| 台湾省| 肥乡县| 弥勒县| 汉川市| 上蔡县| 巴林右旗| 上蔡县| 喀什市| 来凤县|