One of the things about Python that turns developers away is the loose typing. It can also be difficult to debug applications without the right tools, or with the right tools that are loosely typed. This gets more complicated when we start to look at complex mathematical types, such as tensors, in code. Fortunately, Visual Studio Code provides a simple Python debugger that can expose type inspection at runtime. Let's see how this works by going through the following exercise:
- Open Visual Studio Code back up to the last exercise.
- Set a breakpoint by clicking just in the margin of the editor, as shown in the following image:
- From the menu, select Debug | Start Debugging. Let ...