Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Custom arguments passed are no longer being passed to python file being debugged #302

@DonJayamanne

Description

@DonJayamanne

Note: This used to work

import sys
print(sys.argv)
  • With the per-release version of PTVSD, custom args are passed through to the python file,

  • With the master branch of PTVSD, none of the args are passed to the python file

  • launch.json
    You could either pip install PTVSD into your python interpreter or just add the path to PYTHONPATH as shown below:

        {
            "name": "Run file",
            "type": "pythonExperimental",
            "request": "launch",
            "program": "${file}",
            "args": [ "one", "two", "three" ],
            "env": {
                "PYTHONPATH": "<Path to PTVSD>"
            }
        },

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions