Skip to content
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

Add "pythonArgs" config property for interpreter arguments #305

Closed
int19h opened this issue Jun 23, 2020 · 0 comments
Closed

Add "pythonArgs" config property for interpreter arguments #305

int19h opened this issue Jun 23, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@int19h
Copy link
Contributor

int19h commented Jun 23, 2020

There's currently no way to specify interpreter command line arguments without also specifying the interpreter binary - both are done via "python". When used with VSCode, this means that there's no easy and obvious way to use the current selected interpreter in the IDE, but add some arguments to it - one needs to know about ${command:python.interpreterPath} (and I'm not sure this is even guaranteed to not get renamed or removed in future versions?).

We can enable this scenario by providing a separate property to specify just the arguments, similar to "args" for the debuggee itself, and "debugpyArgs" for injected debugpy; the obvious name would be "pythonArgs".

This should work in conjunction with existing semantics for "python" to maintain compatibility - if "python" is an array, and "pythonArgs" is also present, then we just concatenate them in that order to obtain the final value.

@int19h int19h added the enhancement New feature or request label Jun 23, 2020
@int19h int19h self-assigned this Jun 24, 2020
int19h added a commit to int19h/debugpy that referenced this issue Jul 31, 2020
…rguments

Expose "pythonArgs" to clients.

Make "python" usable in tests in lieu of "pythonPath", and make the runners use it.

Add tests for all combinations of "python"/"pythonPath" and "pythonArgs".
@int19h int19h closed this as completed in 2c524fa Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant