The Python extension supports debugging through the Python Debugger extension for several types of Python applications. For a short walkthrough of basic debugging, see Tutorial - Configure and run the ...
When a program doesn't work as expected, inserting print() statements throughout the code to check variable values is a common way to identify the cause. While this is an effective method, it can ...