[note] pdb in python
Why?
pdb is an abbreviation for the Python Debugger.
The reasons why you should use pdb include the following:
- Tracing the execution of your code
- Identifying errors in your code
- Testing your code
- 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
[note] pdb in python