Extension throwing TypeError: Cannot read properties of undefined (reading 'toString') · Issue #691 · microsoft/vscode-python-debugger · GitHub
Skip to content

Extension throwing TypeError: Cannot read properties of undefined (reading 'toString') #691

Closed

Description

@kycutler

We are seeing errors from recent versions of this extension causing our CI to fail. The error is:

Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
at <...>\extensions\ms-python.debugpy-2025.6.0-win32-x64\dist\extension.js:2:849866
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:52:12)

Tracking down the line/column number shows it is coming from within src/extension/noConfigDebugInit.ts.

I have a PR to fix -- will open shortly.

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

Metadata

Metadata

Labels

needs PRReady to be worked on

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions