microsoft / microsoft/vscode-js-debug
Understand needed update to webRoot or sourceMapPathOverrides
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 373
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 6
Description
The Debug Diagnostics is trying its best to help me with the below error message; but I'm still not sure how to work out the required updates.

What does it mean by; "couldn't find a corresponding source location"?
I think its because it can't find the source maps?
What path is it looking for the corresponding "source location" on?
How am I supposed to read the red/ green and not highlighted part of the other files with the same name message?
Is the red, parts of the path it was looking for that don't match the paths of the other files with the same names?
I tried updating webRoot and sourceMapPathOverrides; but the error message didn't change.
My launch.json is as below.
{
"type": "chrome",
"request": "launch",
"name": "vuejs: chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:/*": "${webRoot}/*",
"/./*": "${webRoot}/*",
"/src/*": "${webRoot}/*",
"/*": "*",
"/./~/*": "${webRoot}/node_modules/*"
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported launch.json configuration and the Debug Diagnostics output, focusing on webRoot and sourceMapPathOverrides. Trace how the debugger resolves source locations and presents same-name files, then document what the paths mean and what a successful configuration should show.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript, webpack
- Domain
- devtools
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100