Skip to content

Debug task "args" does not handle values with space correctly #194

@Komposten

Description

@Komposten

What happened?

I specified a debug task as follows:

[
  {
    "label": "Debug app",
    "adapter": "Java",
    "request": "launch",
    "args": [
      "C:\\path with spaces\\some file.txt",
      "arg2"
    ]
  }
]

The args array in the main method contains ["C:\\path", "with", "spaces\\some", "file.txt", "arg2"].

What did you expect to happen?

The args array should contain the argument as a single string: ["C:\\path with spaces\\some file.txt", "arg2"].

Environment

Zed: v0.224.9+stable.171.44c4e5c95e6d2740f71d261268ea993d45342ede (Zed)
OS: Windows 10.0.26200
Java extension: v6.8.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions