I have nextjs application that I configured for debugging.
The problem: node_modules
files are not skipped and this is bad debugging experience.
Run-time loaded files
And here is my configuration
{
"name": "Debug app1 fullstack",
"type": "node-terminal",
"request": "launch",
"command": "pnpm run debug",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
},
"skipFiles": ["**/webpack-internal:///node_modules/**"],
"cwd": "${workspaceFolder}/apps/app1"
}
If leave only **/webpack-internal://**
nothing is loaded in the browser and breakpoints doesnt stop so I guess I’m in a proper direction.
Also <node_internals>
doesnt have impact of my problem.
It is in monorepo so I changed cwd
.