[note] pdb in python

Why?

pdb is an abbreviation for the Python Debugger.

The reasons why you should use pdb include the following:

  1. Tracing the execution of your code
  2. Identifying errors in your code
  3. Testing your code
  4. Understanding the code

How to use?

command usage
h help
w where
n until next breakpoint
s steps into func
c continue
q quit

Reference

Author

Hsiang-Jen Li

Posted on

2024-02-02

Updated on

2024-02-03

Licensed under