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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset