-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Labels
Milestone
Description
Refs: microsoft/vscode-python#19503
- macOS @eleanorjboyd
- linux @rzhao271
- windows @luabud
Complexity: 3
Author: @paulacamargo25
Prerequisites:
- Install python version >= 3.7
- Install the
debugpyextension.
Part 1: Debugging python file
- Create a python file with a simple code.
- Go to
Run and debug, thenCreate a launch.json file - Select Debugpy > Python File
- Make sure the configuration has been created correctly, that is, that the type is
debugpy, the name. - Run the configuration, add breakpoint, change interpreters, play around with the debug a bit, to make sure everything is correct.
Part 2: Debug with other launch configurations
- If you have a project in python you can try the other launch configurations. For example with Django, FastApi or Flask. Otherwise you can follow the steps here to create a simple fastApi application.
- Click on the
Add configurationbutton in the launch.json, select dubugpy > FastApi. - Make sure the configuration has been created correctly, that is, that the type is
debugpy, the name. - Run the configuration, add breakpoint, change interpreters, play around with the debug a bit, to make sure everything is correct.
Reactions are currently unavailable