Skip to content

Install debugger to work with extension when running from source #8606

Closed
@karthiknadig

Description

@karthiknadig

Currently if you build and debug the extension from source, you won;t have ptvsd installed in the extension directory (which is the directory you git check out). The extension will look for the debugger under that directory. Since it is not installed there it will fail to run.

Workaround:

Suppose you have extension code checked out in this location: C:\GIT\vscode-python, then Run these two commands. You will need both.

Install without wheels:

python -m pip --disable-pip-version-check install -t C:\GIT\vscode-python\pythonFiles\lib\python\new_ptvsd\no_wheels --no-cache-dir --implementation py --no-deps --upgrade ptvsd==5.0.0a8

Install with wheels:

python -m pip --disable-pip-version-check install -t C:\GIT\vscode-python\pythonFiles\lib\python\new_ptvsd\wheels --no-cache-dir --no-deps --upgrade  ptvsd==5.0.0a8

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-debuggingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.importantIssue identified as high-priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions