// Tutorial Series //
Debugging Python Programs
Default avatar
By Lisa Tagliaferri
Developer and author at DigitalOcean.
Debugging Python Programs

Introduction

Debugging is a part of the software development process where programmers look for and then resolve issues that prevent the software from running correctly or as expected. This series will explore different methods for debugging Python programs, including how to use the Python Debugger, how to work with the code module for debugging on an interactive console, and how to use logging to debug.

Summary View
detailed View
// Tutorial //

How To Use the Python Debugger

Updated on August 20, 2021

In software development, debugging is the process of looking for and resolving issues that prevent computer software from running correctly. The Python debugger pdb provides a debugging environment for Python programs. In this tutorial, we will go over how to work with pdb to implement an interactive debugging environment that you can use with any of your programs written in Python.

// Tutorial //

The Python code module is a useful and quick tool for debugging because it can be used to emulate the interactive interpreter. This tutorial will cover how to work with this module to examine your code.

// Tutorial //

How To Use Logging in Python 3

Updated on August 20, 2021

The logging module is part of the standard Python library and provides tracking for events that occur while software runs. You can add logging calls to your code to indicate what events have happened. In this tutorial, we will go over how to work with logging calls to understand the various events that occur from running your program over time.

Check out all our Tutorial Series

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel