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

Paths shown in Firefox and VSCode are different

Aperta
#259 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
447
Fork
76
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.