From the course: Visual Studio Code for Python Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up for Python debugging

Setting up for Python debugging

From the course: Visual Studio Code for Python Developers

Start my 1-month free trial

Setting up for Python debugging

- [Instructor] .vscode with the Python extension installed provides great support for debugging a variety of Python application types. In this example, we're going to debug the Geometry Solver sample program that we've been working with. So let's go ahead and open that up. So first, let's switch to the debug view by clicking on the debug icon here in the View bar. Now before you can start debugging your Python app, you need to create a debugging configuration for the type of Python app that you're building. A configuration is defined by a file named launch.json which is stored in the .vscode folder in your project workspace. So you can see in the Configurations menu up here, we don't have a debug configuration currently, so I will choose Add Configuration to create one. .vscode detects that this is a Python project so when I do this, a new launch.json file is created for me. Now usually this detection happens automatically, but if it fails for some reason, then you'll have to select…

Contents