firefox-devtools / firefox-devtools/vscode-firefox-debug
Paths shown in Firefox and VSCode are different
- 主要言語
- TypeScript
- スター
- 447
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
```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?
コントリビューションガイド
調査の方向性
提供されている launch.json 構成から始め、Firefox と VSCode の両方で Parcel 2 beta 3.1 のセットアップを再現します。各デバッガーが source-map のパスをどのように解決するかを比較します。異なる場所が想定されたものかどうかを判断し、そうでない場合は、修正が必要な debug adapter の動作を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100