You can have a look on module pdb :
https://docs.python.org/3/library/pdb.html
It comes with python and it is extensible, so you can add your own debugging code and create automation if you wish.
Also, Idle comes with python, and is slightly different.
Pudb is also console based, very easy to use, and very efficient. I use it on production or slow computers with no GUI. It's in debian repository. See :
https://pypi.org/project/pudb/
Furthermore, winpdb is with a GUI, works on linux (and windows, but I never tried on it), with an interesting feature : it can be attached by a socket, so you can debug background or distant processes. Useful with web applications and also in debian repository.
On windows, you could try pywin32, efficient for GUI applications.