Skip to content

TPI: Debugging Python, Test Attach configuration #35

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

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

TPI: Debugging Python, Test Attach configuration #35

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: Attach using Process Id

  1. Run a python project in a external terminal, It can be a python program with an input, or a more complex application like django, flask FastApi.
  2. Open vscode insiders, and open the folder with the python file/project.
  3. Go to Run and debug, then Create a launch.json file
  4. Select Debugpy > Attach using Process Id
  5. Make sure the configuration has been created correctly, that is, that the type is debugpy, the name.
  6. Run the configuration and select your application from the list.
  7. Add breakpoint, change interpreters, play around with the debug a bit, to make sure everything is correct.
  8. You can also try with the other attach configurations.
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 26, 2023
@paulacamargo25 paulacamargo25 added this to the June 2023 milestone Jun 26, 2023
@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label Jun 26, 2023
@luabud luabud self-assigned this Jun 27, 2023
@eleanorjboyd eleanorjboyd self-assigned this Jun 27, 2023
@luabud luabud removed their assignment Jun 27, 2023
@rzhao271 rzhao271 assigned rzhao271 and unassigned rzhao271 Jun 27, 2023
@eleanorjboyd eleanorjboyd reopened this Jun 27, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 27, 2023
@connor4312 connor4312 removed their assignment Jun 27, 2023
@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label 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

6 participants