Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPI: Debugging Python, Test launch configuration #34

Closed
3 tasks done
paulacamargo25 opened this issue Jun 26, 2023 · 0 comments
Closed
3 tasks done

TPI: Debugging Python, Test launch configuration #34

paulacamargo25 opened this issue Jun 26, 2023 · 0 comments

Comments

@paulacamargo25
Copy link
Contributor

paulacamargo25 commented Jun 26, 2023

Refs: microsoft/vscode-python#19503

Complexity: 3

Author: @paulacamargo25


Prerequisites:

  • Install python version >= 3.7
  • Install the debugpy extension.

Part 1: Debugging python file

  1. Create a python file with a simple code.
  2. Go to Run and debug, then Create a launch.json file
  3. Select Debugpy > Python File
  4. Make sure the configuration has been created correctly, that is, that the type is debugpy, the name.
  5. 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

  1. 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.
  2. Click on the Add configuration button in the launch.json, select dubugpy > FastApi.
  3. Make sure the configuration has been created correctly, that is, that the type is debugpy, the name.
  4. Run the configuration, add breakpoint, change interpreters, play around with the debug a bit, to make sure everything is correct.
@paulacamargo25 paulacamargo25 added this to the June 2023 milestone Jun 26, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 26, 2023
@paulacamargo25 paulacamargo25 removed the triage-needed Needs assignment to the proper sub-team label Jun 26, 2023
@eleanorjboyd eleanorjboyd self-assigned this Jun 27, 2023
@rzhao271 rzhao271 assigned rzhao271 and unassigned rzhao271 Jun 27, 2023
@luabud luabud assigned luabud and unassigned luabud Jun 27, 2023
@eleanorjboyd eleanorjboyd removed their assignment Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants