If you want to have a debugging feature in python, I know that Visual studio code has a fantastic and easy to use debugger.