

If you want to run a Python script from the command terminal, simply enter this in the terminal: There are tons of things that you can do now in the debug mode in VS Code you can inspect a variable in the VARIABLES pane, hover over variables to see values, in the Debug Console you can perform simulations on variables etc. The program will run and will pause on our breakpoint:

You might be presented with an option on the left hand side to either Debug with Python or Run with Python.

Place a breakpoint on Line 2 by either clicking on the left side of a line before the line number or by placing a cursor on a line and pressing F9.Ī menu will appear that will present you with a list of different options from which you can choose the type of application to run.

Write Python code in Visual Studio Code.Setup Visual Studio Code environment for Python.So it’s quite an inclination to have these 2 entities setup side by side to complement each other.Īfter you finish this tutorial, you will be able to: Visual Studio Code is the most popular IDE in the world right now according to Stack Overflow’s 2019 survey while Python is the most wanted and second most loved programming language and has risen the ranks of programming fame probably more quickly than any other language. This post will describe the end-to-end process of setting up VS Code environment for Python and developing & deploying AWS Lambda functions using that VS Code setup.
