10000 TPI: Debugging Python, Test Attach configuration · Issue #35 · microsoft/vscode-python-debugger · GitHub
[go: up one dir, main page]

Skip to content
TPI: Debugging Python, Test Attach configuration #35
Closed
@paulacamargo25

Description

@paulacamargo25

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0