Skip to content

TpeError: Cannot read properties of undefined (reading 'toString') #1502

@phortonssf

Description

@phortonssf

Describe the bug
When starting the debugger node vsDebugServer.js
I get the following error.

[dap-js] JS Debugger stderr:
[dap-js] JS Debugger stderr: ~/.local/share/nvim/site/pack/packer/opt/vscode-js-debug/src/vsDebugServer.ts:93
    console.log((result.server.address() as net.AddressInfo).port.toString());
                                                                 ^
TypeError: Cannot read properties of undefined (reading 'toString')
    at VsDebugServer.launchRoot (~/.local/share/nvim/site/pack/packer/opt/vscode-js-debug/src/vsDebugServer.ts:93:66)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

[dap-js] JS Debugger exited with code 1!

To Reproduce

  1. Installed latest and uzzipped the lates build, 1.74.1
  2. ran npm install and npm run compile
  3. tsc --version
    Version 4.9.3

node -v
v18.12.1

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions