geekdoc-python-zh/docs/pythonlibrary/python-101-debugging-your-c...

1.1 KiB

Python 101 - Debugging Your Code with pdb (Video)

原文:https://www.blog.pythonlibrary.org/2022/08/19/python-101-debugging-your-code-with-pdb-video/

Learn how to debug your Python programs using Python's built-in debugger, pdb with Mike Driscoll

In this tutorial, you will learn the following:

  • Starting pdb in the REPL
  • Starting pdb on the Command Line
  • Stepping Through Code
  • Adding Breakpoints in pdb
  • Creating a Breakpoint with set_trace()
  • Using the built-in breakpoint() Function - Getting Help

https://www.youtube.com/embed/PY4TKPzR9j8?feature=oembed

This video is based on a chapter from the book, Python 101 by Mike Driscoll