# How do you debug a Python program?

**URL:** <https://discuss.python.org/t/how-do-you-debug-a-python-program/7745>\
**Category:** Python Help\
**Created:** [March 18, 2021, 5:11am UTC](https://discuss.python.org/t/how-do-you-debug-a-python-program/7745 "2021-03-18T05:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richards12](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@richards12](https://discuss.python.org/u/richards12)\
**Post date:** [March 18, 2021, 5:11am UTC](https://discuss.python.org/t/how-do-you-debug-a-python-program/7745/1 "2021-03-18T05:11:58Z")

</div>

Hi, I want to know How do you debug a Python program

---

<div class="post-metadata">

**Author:** ![jeanas](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jeanas/32/8115_2.png) [@jeanas](https://discuss.python.org/u/jeanas)\
**Post date:** [March 18, 2021, 7:42pm UTC](https://discuss.python.org/t/how-do-you-debug-a-python-program/7745/2 "2021-03-18T19:42:33Z")

</div>

Please read

> **[Six Debugging Techniques for Python Programmers](https://medium.com/techtofreedom/six-debugging-techniques-for-python-programmers-cb25a4baaf4b)**
>
> Better debugging techniques make programmers lives happier.

There is also the nice f-string debugging syntax, which you can learn in

[https://tirkarthi.github.io/programming/2019/05/08/f-string-debugging.html](https://tirkarthi.github.io/programming/2019/05/08/f-string-debugging.html)
