firefox-devtools / firefox-devtools/vscode-firefox-debug

Paths shown in Firefox and VSCode are different

Open
#259 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Hello, here is a screenshot of the problem:

![image](https://user-images.githubusercontent.com/48261497/120900774-18697f00-c637-11eb-944d-db2681681da0.png)

- 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

```jsonc
{
"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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.