Skip to content

debugpy launch-with-arguments: there can be only one #465

Closed as not planned

Description

@dmaziuk

Version: 1.93.1
OS: Windows 11

Similar to #233 only different: when passing more than a single command line arg via "Command Line Arguments" prompt, the whole string is wrapped in quotes and passed as a single arg. E.g. passing "-v" works, passing "-l logfile.log" breaks argparse or anything that expects those in separate elements in sys.argv

Activity

  1. added
    triage-needed
    on Sep 27, 2024
  2. eleanorjboyd commented on Oct 1, 2024

    @eleanorjboyd
    Contributor

    yes understood this seems to be an ongoing issue. In the meantime does doing "-l=logfile.log" help at all? Or no given you are attempting multiple arguments?

  3. added
    bug
    on Oct 1, 2024
  4. dmaziuk commented on Oct 1, 2024

    @dmaziuk
    Author

    I usually need multiple arguments, yes.

    It also won't work with combinations of switches e.g. -a -b and/or positional args one two three etc.

  5. karthiknadig commented on Dec 11, 2024

    @karthiknadig
    Member

    The "${command:pickArgs}" is actually implemented in VS Code. This should be fixed there.

    Duplicate of: microsoft/vscode#232560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugtriage-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions