Skip to content
This repository has been 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

Closed
DonJayamanne opened this issue Apr 3, 2018 · 2 comments
Assignees

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Apr 3, 2018

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>"
            }
        },
@ericsnowcurrently
Copy link
Member

@DonJayamanne Please verify that this is fixed now that #306 has been merged.

@DonJayamanne
Copy link
Contributor Author

Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants