Skip to content

debug config that uses ${command:pickArgs} does not cancel when pressing escape on the arguments prompt #747

Open
@DetachHead

Description

@DetachHead

to reproduce

  1. create the following .vscode/launch.json:
    {
        "version": "0.2.0",
        "configurations": [
            {
                "name":"Python Debugger: Current File with Arguments",
                "type":"debugpy",
                "request":"launch",
                "program":"${file}",
                "console":"integratedTerminal",
                "args":"${command:pickArgs}"
            },
        ]
    }
  2. open a python file and set a breakpoint
  3. run the launch config
  4. press Escape when this dialog appears (note that it says "'Escape' to cancel")):
    Image

expected behavior

it cancels and does not run

actual behavior

it runs and pauses on the breakpoint:

Image

environment

vscode v1.101.24242
ms-python.python v2025.8.1
ms-python.debugpy v2025.8.0
OS: windows 10, 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions