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

Parsing arguments passed to debug providers #62233

Closed
fabiospampinato opened this issue Oct 31, 2018 · 2 comments
Closed

Parsing arguments passed to debug providers #62233

fabiospampinato opened this issue Oct 31, 2018 · 2 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster

Comments

@fabiospampinato
Copy link
Contributor

  • VSCode Version: 1.25.2
  • OS Version: 10.13.5

We can pass custom arguments in our debug providers' configurations, e.g.:

args: [`--extensionDevelopmentPath=${rootPath}`]

For some reason the following isn't properly parsed:

args: [`--extensionDevelopmentPath="${rootPath}"`]
args: [`--extensionDevelopmentPath='${rootPath}'`]

Notice that I'm quoting the value of the extensionDevelopmentPath option.

Is this documented anywhere? Is this a bug?

@weinand weinand assigned weinand and unassigned isidorn Oct 31, 2018
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Oct 31, 2018
@weinand
Copy link
Contributor

weinand commented Oct 31, 2018

What do you mean by "the following isn't properly parsed"?
What error are you seeing?

Instead of putting quotes around the rootPath to protect paths with spaces, you can let VS Code do the work:


args: [`--extensionDevelopmentPath`, `${rootPath}`]

VS Code will quote arguments that contain spaces.

@weinand weinand added the info-needed Issue requires more information from poster label Oct 31, 2018
@fabiospampinato
Copy link
Contributor Author

fabiospampinato commented Oct 31, 2018

What do you mean by "the following isn't properly parsed"?

I get this error, basically the quotation marks are preserved and a slash is added at the beginning:

screen shot 2018-10-31 at 13 33 13

args: [--extensionDevelopmentPath, ${rootPath}]
VS Code will quote arguments that contain spaces.

That's exactly what I need, thanks.

Does VS Code quote arguments that are written like this: --extensionDevelopmentPath=${rootPath} too?

@weinand weinand closed this as completed Oct 17, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants