Skip to content

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

@kycutler

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.

Metadata

Metadata

Assignees

Labels

needs PRReady to be worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions