Paths shown in Firefox and VSCode are different
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- devtools
Research direction
Start with the provided launch.json configurations and reproduce the Parcel 2 beta 3.1 setup in both Firefox and VSCode. Compare how each debugger resolves the source-map paths; done requires determining whether the differing locations are expected and, if not, identifying the debug adapter behavior that needs correction.
Written by the indexing model from the issue text.
Description
Hello, here is a screenshot of the problem:

- Firefox displays the error location according to the source map
- VSCode displays the real error location
launch.json
I'm using parcel 2 beta 3.1
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-msedge",
"request": "launch",
"name": "Edge",
"url": "http://localhost:1234",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/__parcel_source_root/*": "${workspaceFolder}/*",
"../*": "${webRoot}/*"
}
},
{
"type": "firefox",
"request": "launch",
"name": "Firefox",
"url": "http://localhost:1234",
"webRoot": "${workspaceFolder}",
"reAttach": true,
"pathMappings": [
{
"path": "../*",
"url": "${webRoot}/*"
}
],
"clearConsoleOnReload": true,
"suggestPathMappingWizard": true
}
]
}
Is this behavior normal?
- Dominant language
- TypeScript
- Stars
- 447
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
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.
More from firefox-devtools/vscode-firefox-debug
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
firefox-devtools/vscode-firefox-debug#391 · 2 comments · 1 reaction ·
-
bug path mapping
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Castle Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Create new issue Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
All issues in firefox-devtools/vscode-firefox-debug
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100