Python debugger for python script

I’m running the AI for machine learning project in a python script (the essential package is only available in python). I also want to control the agent over the python script. For this i would need a debugger to play around with the code and learn it.

Can someone point me to a tutorial for a python debugger where i can set breakpoints and inspect variables? (I’ve already tried a tutorial that was outdated and wasn’t even for python)

I am also looking for Answer for same question. if anyone can help then please help us.

pdb is the standard Python debugger. Also, vscode has a breakpoint debugger