microsoft / microsoft/vscode-python-debugger

Debugger crashes with no args

Open
#725 0 comments 0 reactions 1 assignee View on GitHub

@eleanorjboyd is already working on this.

Since Jun 10, 2025.

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

Description

When using such a config like the following and no args are supplied the debugger kinda crashes / times out but needs a lot of time for this.

{
    "name": "Python Debugger: cli function",
    "type": "debugpy",
    "request": "launch",
    "program": "${workspaceFolder}/src/cli.py",
    "console": "integratedTerminal",
    "args": "${command:pickArgs}"
}

I found it out, when clicking into the appearing line and opening maccy on macos.

Then the following got called in the terminal:

cd <project-path> ; /usr/bin/env <project-path>/.venv/bin/python $HOME/.vscode/extensions/ms-python.debugpy-2025.8.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 60340 -- <project-path>/src/cli.py ${command:pickArgs} 
zsh: unrecognized modifier `p'

And after around 60s a message with the following content pops up: Timed out waiting for launcher to connect

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.