The Python Oracle

How to step through Python code to help debug issues?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 Question
00:24 Accepted answer (Score 350)
01:46 Answer 2 (Score 72)
04:43 Answer 3 (Score 47)
05:08 Answer 4 (Score 35)
05:45 Thank you

--

Full question
https://stackoverflow.com/questions/4929...

Accepted answer links:
[pdb]: http://docs.python.org/library/pdb.html
[Pydev]: http://pydev.org/
[Wing IDE]: https://wingware.com/
[PyCharm]: https://www.jetbrains.com/pycharm/downlo.../

Answer 2 links:
https://pymotw.com/2/pdb/
https://pythonconquerstheuniverse.wordpr.../

Answer 4 links:
[breakpoint()]: https://docs.python.org/3.7/library/func...
[pdb]: https://docs.python.org/3.7/library/pdb....
[pdb.set_trace()]: https://docs.python.org/3.7/library/pdb....
[sys.breakpointhook()]: https://docs.python.org/3.7/library/sys....
[PYTHONBREAKPOINT]: https://docs.python.org/3.7/using/cmdlin...
[PEP 553]: https://www.python.org/dev/peps/pep-0553/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #debugging

#avk47