Skip to content

skipFiles is not skipping node internals on Node 15 #862

@samuelkdavis-mccarthyfinch

Description

Describe the bug
Debugging step into an async function still takes the IDE inside node internals.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Log File

vscode-debugadapter-d741e5f7.json.gz

1.51.1

Additional context
Launch.json:

{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"skipFiles": [
"<node_internals>//*.js",
"<node_internals>/
/",
"${workspaceFolder}/app/node_modules/**/
.js"
],
"trace": true,
"name": "Debug via npm",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"start:local-debug"
],
"port": 9229,
"cwd": "${workspaceFolder}/app"
}
]
}
Package.json:
{
"name": "batch",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"add": "npx ts-node ./src/addDocument.ts",
"get": "npx ts-node ./src/getDocument.ts",
"processing": "npx ts-node ./src/markDocumentAsProcessing.ts",
"tsnodedev": "npx ts-node-dev ./src/addDocument.ts",
"start:local-debug": "ts-node-dev --inspect --require dotenv-extended/config src/testDocumentClient"
},
"author": "",
"license": "ISC",
"dependencies": {
"aws-sdk": "^2.795.0",
"date-fns": "^2.16.1",
"date-fns-timezone": "^0.1.4"
},
"devDependencies": {
"@types/node": "^14.14.8",
"dotenv": "^8.2.0",
"dotenv-extended": "^2.9.0",
"ts-node": "^9.0.0",
"ts-node-dev": "^1.0.0",
"typescript": "^4.0.5"
}
}

TSConfig:
{
"compilerOptions": {
"module": "CommonJS",
"esModuleInterop": true,
"target": "ES2020",
"noImplicitAny": true,
"moduleResolution": "Node",
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"rootDir": "./",
"paths": {
"": [
"node_modules/
"
]
}
},
"include": [
"src/**/*"
]
}

Metadata

Metadata

Assignees

Labels

bugIssue 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