Skip to Content
Python Automation Cookbook - Second Edition
book

Python Automation Cookbook - Second Edition

by Jaime Buelta
May 2020
Intermediate to advanced content levelIntermediate to advanced
526 pages
10h 31m
English
Packt Publishing
Content preview from Python Automation Cookbook - Second Edition

13

Debugging Techniques

In this chapter, we will cover the following recipes:

  • Learning Python interpreter basics
  • Debugging through logging
  • Debugging with breakpoints
  • Improving your debugging skills

Introduction

Writing code is not easy. Actually, it is very hard. Even the best programmer in the world can't foresee every possible alternative and flow of the code.

This means that executing our code will always produce surprises and unexpected behaviors. Some will be very evident, while others will be very subtle, but the ability to identify and remove these defects in the code is critical to building solid software.

These defects in software are known as bugs, and therefore removing them is called debugging.

Inspecting the code just by reading ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Automation Cookbook

Python Automation Cookbook

Jaime Buelta

Publisher Resources

ISBN: 9781800207080Supplemental Content