- Mastering Python Scripting for System Administrators
- Ganesh Sanjiv Naik
- 106字
- 2021-07-02 14:00:31
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
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- Beginning Java Data Structures and Algorithms
- Learning Bayesian Models with R
- 名師講壇:Spring實戰(zhàn)開發(fā)(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 信息技術(shù)應(yīng)用基礎(chǔ)
- 碼上行動:用ChatGPT學(xué)會Python編程
- Natural Language Processing with Java and LingPipe Cookbook
- Arduino計算機(jī)視覺編程
- 硬件產(chǎn)品設(shè)計與開發(fā):從原型到交付
- 深入淺出Python數(shù)據(jù)分析
- Practical Maya Programming with Python
- Java EE項目應(yīng)用開發(fā)
- Clojure Data Structures and Algorithms Cookbook
- Improving your Penetration Testing Skills
- Java Web應(yīng)用開發(fā)