microsoft / microsoft/vscode-python-debugger

`command:pickArgs` behaves differently as value vs array

Open
#635 10 comments 2 reactions 1 assignee View on GitHub

@rchiodo is already working on this.

Since Feb 25, 2026.

triage-needed
Dominant language
TypeScript
Stars
181
Forks
126
Avg merge
2d 3h
Merged PRs (30d)
3

Description

In particular,

"args": "${command:pickArgs}",

has a different behaviour with respect to

"args": ["${command:pickArgs}"],

In particular, in one case the full program command path (e.g. C:\Program Files\Python312) does not get escaped, in the other case it gets proper escaping, causing Visual Studio Code to fail because of the spaces.

I don't know if args parameter cannot be specified in both these ways but I think that program path must be quoted the same way in both cases to avoid these kind of issues.

Edit: output is similar to what was already attached in the opening post.

Thanks!

Originally posted by @fgiancane8 in #351

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.